diff --git a/scripts/ci/script.sh b/scripts/ci/script.sh index b7491e7641..965759876c 100644 --- a/scripts/ci/script.sh +++ b/scripts/ci/script.sh @@ -6,7 +6,8 @@ set -e python -mtests if [[ "$TRAVIS_PULL_REQUEST" == "false" && \ - "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then + "$TRAVIS_SECURE_ENV_VARS" == "true" && \ + "$(python -c 'import sys; print(sys.version_info[0])')" == '2' ]]; then codecov fi