Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-04-06 02:07:33 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-04-06 03:17:12 +0300
commitea98539ba48c387d36654f41f3b581aa3d9e2d61 (patch)
tree2004dd0e7682c221143dcc6a472ff0b412068a45 /build
parent6863fc593c32c13771cb1617b1dc02f34aaa8872 (diff)
Update dependencies and run with all threads on Travis.
Diffstat (limited to 'build')
-rw-r--r--build/phantom.js11
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',