Skip to content

Commit

Permalink
ci: Travis: use $TRAVIS_PULL_REQUEST_BRANCH for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Aug 10, 2019
1 parent f7e81da commit cd34cad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/report-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ fi
python -m coverage combine
python -m coverage xml
python -m coverage report -m
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml
# Specify branch explicitly - codecov uses target branch for PRs.
# Ref: https://github.com/codecov/codecov-bash/pull/190
branch="${TRAVIS_PULL_REQUEST_BRANCH:-TRAVIS_BRANCH}"
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X fix -B "$branch" -f coverage.xml

0 comments on commit cd34cad

Please sign in to comment.