From 11f9f1374bb0c74cd2c34f1d92b28d2e382903e7 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 4 Jan 2016 19:25:43 -0600 Subject: [PATCH] modify upload_coverage to handle pypy-nocoverage properly --- .travis/upload_coverage.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis/upload_coverage.sh b/.travis/upload_coverage.sh index e7a2e51dfda6..5790e954cd36 100755 --- a/.travis/upload_coverage.sh +++ b/.travis/upload_coverage.sh @@ -3,8 +3,13 @@ set -e set -x -NO_COVERAGE_TOXENVS=(pypy-nocoverage pep8 py3pep8 docs) -if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then - source ~/.venv/bin/activate - codecov --env TRAVIS_OS_NAME,TOXENV,OPENSSL -fi +case "${TOXENV}" in + pypy-nocoverage);; + pep8);; + py3pep8);; + docs);; + *) + source ~/.venv/bin/activate + codecov --env TRAVIS_OS_NAME,TOXENV,OPENSSL + ;; +esac