Skip to content

Commit

Permalink
test with updated mochify
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Dec 19, 2017
1 parent 360c2e7 commit ecdc4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .circleci/config.yml
Expand Up @@ -41,12 +41,8 @@ jobs:
command: |
if node --version | grep -q '^v6'; then
npm run lint;
# HACK: modify mochify to pass args to chrome to allow it to run as root
# --no-sandbox --disable-setuid-sandbox
# See https://github.com/mantoni/mochify.js/issues/162
sed -i "s#'--allow-insecure-localhost'#'--allow-insecure-localhost', '--no-sandbox', '--disable-setuid-sandbox'#" node_modules/mochify/lib/chromium.js && echo "modified mochify/lib/chromium.js";
npm run test-headless -- --chrome $(which google-chrome-unstable);
npm run test-webworker -- --chrome $(which google-chrome-unstable);
npm run test-headless -- --chrome $(which google-chrome-unstable) --allow-chrome-as-root;
npm run test-webworker -- --chrome $(which google-chrome-unstable) --allow-chrome-as-root;
fi
- run:
name: Test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -55,7 +55,7 @@
"lint-staged": "^4.0.0",
"markdownlint-cli": "^0.4.0",
"mocha": "^4.0.0",
"mochify": "^5.0.0",
"mochify": "mantoni/mochify.js#2cdbc02a4db887bfe3604f8d18f593c980f7897e",
"mochify-istanbul": "^2.4.1",
"native-promise-only": "^0.8.1",
"npm-run-all": "^4.0.2",
Expand Down

0 comments on commit ecdc4e0

Please sign in to comment.