From a4f9789aa453a01a9e1f58636ead0483480a64c6 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 8 Oct 2018 03:30:02 +0300 Subject: [PATCH] travis: upload coverage on python 2 --- scripts/ci/script.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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