diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-04-06 02:07:33 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-04-06 03:17:12 +0300 |
commit | ea98539ba48c387d36654f41f3b581aa3d9e2d61 (patch) | |
tree | 2004dd0e7682c221143dcc6a472ff0b412068a45 /build | |
parent | 6863fc593c32c13771cb1617b1dc02f34aaa8872 (diff) |
Update dependencies and run with all threads on Travis.
Diffstat (limited to 'build')
-rw-r--r-- | build/phantom.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/phantom.js b/build/phantom.js index 469e866..4f6e781 100644 --- a/build/phantom.js +++ b/build/phantom.js @@ -5,10 +5,19 @@ 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; -const THREADS = cpus <= 2 ? 1 : cpus / 2; +let THREADS; + +if (isTravis) { + THREADS = cpus; +} else if (cpus <= 2) { + THREADS = 1; +} else { + THREADS = cpus / 2; +} const ignore = [ 'test/fixtures/jquery/missing.html', |