Commit 4338f9e 1 parent 5dd7e90 commit 4338f9e Copy full SHA for 4338f9e
File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ branches:
25
25
before_install :
26
26
- nvm install
27
27
28
- env : PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
28
+ env :
29
+ - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
30
+ - HARDWARE_CONCURRENCY=2
29
31
30
32
jobs :
31
33
include :
Original file line number Diff line number Diff line change @@ -44,7 +44,15 @@ if ( ! files.length ) {
44
44
} ;
45
45
}
46
46
47
- const worker = workerFarm ( require . resolve ( './build-worker' ) ) ;
47
+ const options = { } ;
48
+ if ( process . env . HARDWARE_CONCURRENCY ) {
49
+ // WorkerFarm is configured to use the number of CPUs available as the
50
+ // default value. This can be overwritten for finite control or for use in
51
+ // uncooperative continuous integration.
52
+ options . maxConcurrentWorkers = Number ( process . env . HARDWARE_CONCURRENCY ) ;
53
+ }
54
+
55
+ const worker = workerFarm ( options , require . resolve ( './build-worker' ) ) ;
48
56
49
57
let complete = 0 ;
50
58
You can’t perform that action at this time.
0 commit comments