Skip to content

Commit

Permalink
Revert "Build Tooling: Define build concurrency explicitly"
Browse files Browse the repository at this point in the history
This reverts commit 4338f9e.
  • Loading branch information
aduth committed May 20, 2019
1 parent 392f61e commit a9afb77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ branches:
before_install:
- nvm install

env:
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
- HARDWARE_CONCURRENCY=2
env: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

jobs:
include:
Expand Down
10 changes: 1 addition & 9 deletions bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,7 @@ if ( ! files.length ) {
};
}

const options = {};
if ( process.env.HARDWARE_CONCURRENCY ) {
// WorkerFarm is configured to use the number of CPUs available as the
// default value. This can be overwritten for finite control or for use in
// uncooperative continuous integration.
options.maxConcurrentWorkers = Number( process.env.HARDWARE_CONCURRENCY );
}

const worker = workerFarm( options, require.resolve( './build-worker' ) );
const worker = workerFarm( require.resolve( './build-worker' ) );

let complete = 0;

Expand Down

0 comments on commit a9afb77

Please sign in to comment.