diff options
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 3151981adc..c94f3e748c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -200,9 +200,11 @@ after_success: - ccache -s - case "$TEST_SUITE" in unit) - codecov --env PYTHON_VERSION - --required - --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; + if [[ "$COVERAGE" == "true" ]]; then + codecov --env PYTHON_VERSION + --required + --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; + fi ;; esac |