Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Revert "Partially revert ea98539."
Browse files Browse the repository at this point in the history
Run again with all threads on Travis.
  • Loading branch information
XhmikosR committed Mar 13, 2019
1 parent 0388fce commit 299bbf1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,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',
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"browserify": "^16.2.3",
"coveralls": "^3.0.3",
"eslint": "^5.15.1",
"is-travis": "^2.0.0",
"jquery": "^3.3.1",
"node-qunit-phantomjs": "^2.0.1",
"nodeunit": "^0.11.3",
Expand Down

0 comments on commit 299bbf1

Please sign in to comment.