Skip to content

Commit 2ba0686

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 7fce77b commit 2ba0686

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
@@ -4,4 +4,4 @@ node_js:
44
- '0.12'
55
- '0.10'
66
after_success:
7-
- '[ -z "$COVERALLS_REPO_TOKEN" ] && tap --coverage-report=text-lcov | ./node_modules/.bin/coveralls'
7+
- 'cat ./coverage/lcov.info | ./node_modules/.bin/coveralls'

0 commit comments

Comments
 (0)