We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f3755 commit 1d838fbCopy full SHA for 1d838fb
scripts/report-coverage.sh
@@ -15,4 +15,7 @@ python -m coverage xml
15
python -m coverage report -m
16
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
17
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash -o codecov-upload.sh
18
-bash codecov-upload.sh -Z -X fix -f coverage.xml "$@"
+
19
+base_branch="${GITHUB_BASE_REF:-${TRAVIS_BRANCH}}"
20
+base_commit=$(git merge-base FETCH_HEAD "$base_branch")
21
+bash codecov-upload.sh -Z -X fix -f coverage.xml -N "$base_commit" "$@"
0 commit comments