Skip to content

Commit 982c12c

Browse files
MylesBorinsQix-
authored andcommitted
test: only run coveralls on travis
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
1 parent 825d35a commit 982c12c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ install:
1414
script:
1515
- npm run lint
1616
- npm test
17+
- npm run test:coverage

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"test": "npm run test:node && npm run test:browser",
2929
"test:node": "istanbul cover _mocha -- test.js",
3030
"test:browser": "karma start --single-run",
31-
"posttest:node": "cat ./coverage/lcov.info | coveralls"
31+
"test:coverage": "cat ./coverage/lcov.info | coveralls"
3232
},
3333
"dependencies": {
3434
"ms": "^2.1.1"

0 commit comments

Comments
 (0)