From d0e498f159bd425b3403db38c98fe26a345d4dcd Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Sat, 22 Dec 2018 03:14:57 -0500 Subject: [PATCH] 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 --- .travis.yml | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24682db3..8336de28 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,4 @@ install: script: - npm run lint - npm test + - npm run test:coverage diff --git a/package.json b/package.json index 0477a691..0f2801f6 100644 --- a/package.json +++ b/package.json @@ -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"