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 825d35a commit 982c12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ install:
script:
- npm run lint
- npm test
- npm run test:coverage
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test": "npm run test:node && npm run test:browser",
"test:node": "istanbul cover _mocha -- test.js",
"test:browser": "karma start --single-run",
"posttest:node": "cat ./coverage/lcov.info | coveralls"
"test:coverage": "cat ./coverage/lcov.info | coveralls"
},
"dependencies": {
"ms": "^2.1.1"
Expand Down

0 comments on commit 982c12c

Please sign in to comment.