Skip to content

Commit b4343ef

Browse files
authored
CI: troubleshoot codecov (#30070)
1 parent c521a4e commit b4343ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/run_tests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ echo $PYTEST_CMD
3737
sh -c "$PYTEST_CMD"
3838

3939
if [[ "$COVERAGE" && $? == 0 && "$TRAVIS_BRANCH" == "master" ]]; then
40+
SHA=`git rev-parse HEAD`
4041
echo "uploading coverage"
41-
echo "bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME"
42-
bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME
42+
echo "bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME -C $SHA"
43+
bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME -C `git rev-parse HEAD`
4344
fi

0 commit comments

Comments
 (0)