@@ -63,6 +63,7 @@ aliases:
63
63
- /blog.+/
64
64
65
65
test_template : &test_template
66
+ parallelism : 4
66
67
parameters :
67
68
npm_rebuild :
68
69
type : boolean
@@ -75,11 +76,16 @@ aliases:
75
76
condition : << parameters.npm_rebuild >>
76
77
steps :
77
78
- run : npm rebuild
78
- - run : yarn list react
79
- - run : yarn why lmdb-store
80
79
- run :
81
- command : node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1 --ci
80
+ name : Step debug info
81
+ command : |
82
+ yarn list react
83
+ yarn why lmdb-store
84
+ - run :
85
+ name : Run tests
86
+ command : yarn jest --ci --runInBand $(yarn jest --listTests | sed 's/\/root\/project//g' | circleci tests split --split-by=timings)
82
87
environment :
88
+ NODE_OPTIONS : --max-old-space-size=2048
83
89
GENERATE_JEST_REPORT : true
84
90
JEST_JUNIT_OUTPUT_DIR : ./test-results/jest-node/
85
91
JEST_JUNIT_OUTPUT_NAME : results.xml
@@ -193,7 +199,8 @@ jobs:
193
199
- persist_to_workspace :
194
200
root : ./
195
201
paths :
196
- - " *"
202
+ - " packages/"
203
+ - " node_modules/"
197
204
198
205
lint :
199
206
executor : node
@@ -506,6 +513,7 @@ jobs:
506
513
working_directory : ~/project/scripts/i18n
507
514
508
515
windows_unit_tests :
516
+ parallelism : 4
509
517
executor :
510
518
name : win/default
511
519
shell : powershell.exe
@@ -519,28 +527,30 @@ jobs:
519
527
# keys:
520
528
# - yarn-packages-v2-{{ checksum "yarn.lock" }}
521
529
# - yarn-packages-v2-
530
+
531
+ - << : *attach_to_bootstrap
522
532
- run :
523
- name : Install node 12.13
533
+ name : Install node 12.13 and yarn
524
534
command : |
525
535
nvm install 12.13.0
526
536
nvm alias default 12.13.0
527
537
nvm use 12.13.0
528
538
choco install yarn
529
539
- run :
530
- name : Set yarn timeout
531
- command : yarn config set network-timeout 300000
532
- - run :
533
- name : Install node modules
534
- command : yarn --frozen-lockfile
535
- # Caching is slow, so disabling
536
- # - save_cache:
537
- # paths:
538
- # - C:\Users\circleci\AppData\Local\Yarn\Cache
539
- # key: yarn-packages-v2-{{ checksum "yarn.lock" }}
540
- - run : yarn npm-run-all -s check-versions "lerna-prepare --concurrency=4 --stream"
540
+ name : Rebuild packages for windows
541
+ command : |
542
+ Remove-Item -Recurse -Force -Path "node_modules/sharp/"
543
+ yarn
541
544
- run :
542
- name : " Run Tests"
543
- command : yarn jest -w 1 --ci
545
+ name : Run tests
546
+ command : yarn jest --ci --runInBand ((yarn jest --listTests) | Foreach-Object {$_ -replace '.*\\packages', 'packages'} | Foreach-Object {$_ -replace '\\', '/'} | circleci tests split --split-by=timings)
547
+ environment :
548
+ NODE_OPTIONS : --max-old-space-size=2048
549
+ GENERATE_JEST_REPORT : true
550
+ JEST_JUNIT_OUTPUT_DIR : ./test-results/jest-node/
551
+ JEST_JUNIT_OUTPUT_NAME : results.xml
552
+ - store_test_results :
553
+ path : ./test-results/jest-node/
544
554
545
555
bootstrap-with-experimental-react :
546
556
executor : node
@@ -627,6 +637,7 @@ workflows:
627
637
<< : *ignore_docs
628
638
requires :
629
639
- lint
640
+ - bootstrap
630
641
- unit_tests_node12 :
631
642
<< : *ignore_docs
632
643
requires :
0 commit comments