From 8119182d25ceb0e3a4fba176e4a6f6ba950fb48b Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Wed, 21 Aug 2019 12:11:12 -0500 Subject: [PATCH] set sha --- 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 ee46da9f52eab..74c1cde325a02 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -51,8 +51,9 @@ do sh -c "$PYTEST_CMD; ret=\$?; [ \$ret = 5 ] && exit 0 || exit \$ret" if [[ "$COVERAGE" && $? == 0 ]]; then + SHA=`git rev-parse HEAD` echo "uploading coverage for $TYPE tests" - 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 done