Skip to content

Commit bcd6562

Browse files
authored
ci: report all coverage jobs to coveralls (#335)
This is also in preparation of adding a separate checkqa tox env (which does not report coverage then).
1 parent ad2fef9 commit bcd6562

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,14 @@ script:
3636
- tox
3737

3838
after_success:
39-
- bash <(curl -s https://codecov.io/bash) -f coverage.xml -X fix
40-
# coveralls only support one env.
41-
- if [ "$TOXENV" = py37-cov ]; then pip install coveralls; coveralls; fi
39+
- |
40+
if [[ "${TOXENV%-cov}" != $TOXENV ]]; then
41+
bash <(curl -s https://codecov.io/bash) -f coverage.xml -X fix
42+
43+
pip install coveralls
44+
COVERALLS_PARALLEL=true coveralls
45+
fi
4246
4347
notifications:
4448
email: false
49+
webhooks: https://coveralls.io/webhook

0 commit comments

Comments
 (0)