Skip to content

Commit a4be97f

Browse files
committed
WIP: Make CodeCoverage optional
1 parent b0c22c5 commit a4be97f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ script:
2121
- |
2222
if [ ${TRAVIS_NODE_VERSION} = "10" ]
2323
then
24-
cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | ${TRAVIS_BUILD_DIR}/node_modules/.bin/coveralls
24+
cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | ${TRAVIS_BUILD_DIR}/node_modules/.bin/coveralls || exit 0
2525
fi
2626
2727
jobs:

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
"build": "node ./scripts/rollup/build.js",
1010
"build:storybook": "build-storybook -c packages/docs/.storybook -o .out",
1111
"pretest": "node scripts/test/clean.js",
12-
"test": "npm-run-all --sequential test:jest test:karma test:combineCoverage",
13-
"test:coveralls": "npm run test && cat ./coverage/lcov.info | coveralls",
12+
"test": "npm-run-all --sequential test:jest test:karma",
1413
"test:karma": "karma start ./config/karma.conf.js --coverage",
1514
"test:jest": "jest --config=config/jest.config.js --coverage",
16-
"test:combineCoverage": "nyc report -r text -r lcov",
15+
"posttest": "nyc report -r text -r lcov || exit 0",
1716
"clean": "lerna clean --yes && node scripts/clean.js",
1817
"postversion": "node ./scripts/postversion/index.js",
1918
"prettier:all": "prettier --write --config ./prettier.config.js \"packages/**/*.{ts,tsx}\""

0 commit comments

Comments
 (0)