Skip to content

Commit

Permalink
CI: Set SHA for codecov upload (pandas-dev#28067)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger authored Aug 21, 2019
1 parent 32b4710 commit 8b3246f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8b3246f

Please sign in to comment.