Skip to content

Commit cef999a

Browse files
committed
Travis: use codecov-bash
More lightweight to install, and will retry on upload failures.
1 parent 6635ace commit cef999a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ script:
3737
- tox
3838

3939
after_success:
40-
- pip install codecov
41-
- codecov
40+
# Upload coverage information for py* tox environments.
41+
- |
42+
if [ "${TOXENV#py}" != "$TOXENV" ]; then
43+
.tox/$TOXENV/bin/coverage xml
44+
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X fix -f coverage.xml -F "${TOXENV//-/,}"
45+
fi
4246
4347
branches:
4448
only:

0 commit comments

Comments
 (0)