Skip to content

Commit

Permalink
test: only run coveralls on travis
Browse files Browse the repository at this point in the history
s/posttest:node/coverage

Explicitly call coverage only from CI. This will stop the test suite
from failing on a system not configured to authenticate with
circle-ci
  • Loading branch information
MylesBorins authored and Qix- committed Dec 22, 2018
1 parent e30e8fd commit d0e498f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -13,3 +13,4 @@ install:
script:
- npm run lint
- npm test
- npm run test:coverage
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -27,14 +27,14 @@
"lint": "xo",
"test": "npm run test:node && npm run test:browser",
"test:node": "istanbul cover _mocha -- test.js",
"posttest:node": "cat ./coverage/lcov.info | coveralls",
"pretest:browser": "npm run build",
"test:browser": "karma start --single-run",
"prebuild:debug": "mkdir -p dist && browserify --standalone debug -o dist/debug.es6.js .",
"build:debug": "babel -o dist/debug.js dist/debug.es6.js > dist/debug.js",
"build:test": "babel -d dist test.js",
"build": "npm run build:debug && npm run build:test",
"clean": "rimraf dist coverage"
"clean": "rimraf dist coverage",
"test:coverage": "cat ./coverage/lcov.info | coveralls"
},
"dependencies": {
"ms": "^2.1.1"
Expand Down

0 comments on commit d0e498f

Please sign in to comment.