From 09380082b1b182a31950d121f712b7add2948d7f Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Wed, 4 Dec 2019 14:55:45 -0800 Subject: [PATCH] CI: troubleshoot codecov --- ci/run_tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/run_tests.sh b/ci/run_tests.sh index b91cfb3bed8cc..4c5dbabc81950 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -37,7 +37,8 @@ echo $PYTEST_CMD sh -c "$PYTEST_CMD" if [[ "$COVERAGE" && $? == 0 && "$TRAVIS_BRANCH" == "master" ]]; then + SHA=`git rev-parse HEAD` echo "uploading coverage" - echo "bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME" - bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME + echo "bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME -C $SHA" + bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME -C `git rev-parse HEAD` fi