diff --git a/.travis.yml b/.travis.yml index d231359bb..2b34a9d50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,8 +37,12 @@ script: - tox after_success: - - pip install codecov - - codecov + # Upload coverage information for py* tox environments. + - | + if [ "${TOXENV#py}" != "$TOXENV" ]; then + .tox/$TOXENV/bin/coverage xml + bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X fix -f coverage.xml -F "${TOXENV//-/,}" + fi branches: only: