@@ -83,6 +83,25 @@ commands:
83
83
at : *workspace_location
84
84
setup_windows :
85
85
steps :
86
+ - run :
87
+ # We use Arsenal Image Mounter (AIM) instead of ImDisk because of: https://github.com/nodejs/node/issues/6861
88
+ # Useful resources for AIM: http://reboot.pro/index.php?showtopic=22068
89
+ name : ' Arsenal Image Mounter (RAM Disk)'
90
+ command : |
91
+ # Download AIM Drivers
92
+ Invoke-WebRequest 'https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/988930e4b3180ec34661504e6f9906f98943a022/DriverSetup/DriverFiles.zip' -OutFile 'aim_drivers.zip' -UseBasicParsing
93
+ Expand-Archive -Path 'aim_drivers.zip'
94
+
95
+ # Download AIM CLI
96
+ Invoke-WebRequest 'https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/988930e4b3180ec34661504e6f9906f98943a022/Command%20line%20applications/aim_ll.zip' -OutFile 'aim_ll.zip' -UseBasicParsing
97
+ Expand-Archive -Path 'aim_ll.zip'
98
+
99
+ # Install AIM drivers
100
+ ./aim_ll/x64/aim_ll.exe --install ./aim_drivers
101
+
102
+ # Setup RAM disk mount. Same parameters as ImDisk
103
+ # See: https://support.circleci.com/hc/en-us/articles/4411520952091-Create-a-windows-RAM-disk
104
+ ./aim_ll/x64/aim_ll.exe -a -s 5G -m X: -p "/fs:ntfs /q /y"
86
105
- run : nvm install 16.10
87
106
- run : nvm use 16.10
88
107
-
run :
npm install -g [email protected]
@@ -326,10 +345,11 @@ jobs:
326
345
- run :
327
346
name : Execute E2E Tests
328
347
command : |
348
+ mkdir X:/ramdisk/e2e-main
329
349
if (Test-Path env:CIRCLE_PULL_REQUEST) {
330
- node tests\legacy-cli\run_e2e.js "--glob={tests/basic/**,tests/i18n/extract-ivy*.ts,tests/build/profile.ts,tests/test/test-sourcemap.ts,tests/misc/check-postinstalls.ts}" --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX
350
+ node tests\legacy-cli\run_e2e.js "--glob={tests/basic/**,tests/i18n/extract-ivy*.ts,tests/build/profile.ts,tests/test/test-sourcemap.ts,tests/misc/check-postinstalls.ts}" --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX --tmpdir=X:/ramdisk/e2e-main
331
351
} else {
332
- node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX
352
+ node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX --tmpdir=X:/ramdisk/e2e-main
333
353
}
334
354
- fail_fast
335
355
0 commit comments