Skip to content

Commit 1d838fb

Browse files
committed
WIP: scripts/report-coverage.sh: codecov: pass -N
1 parent 55f3755 commit 1d838fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/report-coverage.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ python -m coverage xml
1515
python -m coverage report -m
1616
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
1717
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 "$@"
18+
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

Comments
 (0)