Skip to content

Commit 30831a8

Browse files
committed
travis.yml: simplify piping coverage to coveralls
`tap` automatically uploads coverage to coveralls for branches, but not PR's. That required an ugly workaround in .travis.yml to manually upload only for PR's. Since we now use `nyc` directly, and pass the the `--no-cov` flag in our `tap` commands, this is no longer a problem.
1 parent d4eb585 commit 30831a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ node_js:
66
before_install:
77
- 'npm i -g npm@latest'
88
after_success:
9-
- '[ -z "$COVERALLS_REPO_TOKEN" ] && tap --coverage-report=text-lcov | ./node_modules/.bin/coveralls'
9+
- 'cat ./coverage/lcov.info | ./node_modules/.bin/coveralls'

0 commit comments

Comments
 (0)