diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-05-20 09:39:46 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-05-20 10:03:33 +0300 |
commit | 2d8ea4daaf2c94c7860f07a92b995e8c2f177322 (patch) | |
tree | 7a4d781c78882da7dd9debed2219a5676bdf679a /build | |
parent | 5809200173f47346491f23ebc38ad991462216f2 (diff) |
Partially revert ea98539.
Diffstat (limited to 'build')
-rw-r--r-- | build/phantom.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/build/phantom.js b/build/phantom.js index 4f6e781..469e866 100644 --- a/build/phantom.js +++ b/build/phantom.js @@ -5,19 +5,10 @@ const os = require('os'); const glob = require('glob'); const async = require('async'); -const isTravis = require('is-travis'); const qunit = require('node-qunit-phantomjs'); const cpus = os.cpus().length; -let THREADS; - -if (isTravis) { - THREADS = cpus; -} else if (cpus <= 2) { - THREADS = 1; -} else { - THREADS = cpus / 2; -} +const THREADS = cpus <= 2 ? 1 : cpus / 2; const ignore = [ 'test/fixtures/jquery/missing.html', |