Skip to content

Commit d0e498f

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 e30e8fd commit d0e498f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ install:
1313
script:
1414
- npm run lint
1515
- npm test
16+
- npm run test:coverage

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"lint": "xo",
2828
"test": "npm run test:node && npm run test:browser",
2929
"test:node": "istanbul cover _mocha -- test.js",
30-
"posttest:node": "cat ./coverage/lcov.info | coveralls",
3130
"pretest:browser": "npm run build",
3231
"test:browser": "karma start --single-run",
3332
"prebuild:debug": "mkdir -p dist && browserify --standalone debug -o dist/debug.es6.js .",
3433
"build:debug": "babel -o dist/debug.js dist/debug.es6.js > dist/debug.js",
3534
"build:test": "babel -d dist test.js",
3635
"build": "npm run build:debug && npm run build:test",
37-
"clean": "rimraf dist coverage"
36+
"clean": "rimraf dist coverage",
37+
"test:coverage": "cat ./coverage/lcov.info | coveralls"
3838
},
3939
"dependencies": {
4040
"ms": "^2.1.1"

0 commit comments

Comments
 (0)