Skip to content

Commit acac5da

Browse files
committed
test: fix test coverage reporting
1 parent 39a13cf commit acac5da

File tree

4 files changed

+352
-11
lines changed

4 files changed

+352
-11
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ node_modules
22
npm-debug.log
33
yarn.lock
44
coverage
5-
cc-test-reporter
65

76
# Editor and other tmp files
87
*.swp

.travis.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
language: node_js
22
node_js:
33
- "node"
4-
env:
5-
global:
6-
- CC_TEST_REPORTER_ID=d957b5ff2f78e200b7cfa4e294ac1fe52c823c7d7c327628f897271dc72a874e
7-
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
8-
before_script:
9-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
10-
- chmod +x ./cc-test-reporter
114
script:
12-
- npm test -- --coverage
13-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
5+
- npm test -- --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

0 commit comments

Comments
 (0)