Skip to content

Commit

Permalink
build: fix logic in publishCodeCoverage.sh [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
padamstx committed Jan 27, 2021
1 parent 8f2b3e8 commit a9a29bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/publishCodeCoverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This script will publish code coverage info for a build of the master branch
# or a tagged release.

if [[ -n "${TRAVIS_TAG}" || ${TRAVIS_BRANCH} == "master" ]]; then
if [[ -n "${TRAVIS_TAG}" || "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
printf ">>>>> Publishing code coverage info for branch: %s\n" ${TRAVIS_BRANCH}
$HOME/codecov-bash.sh -f v5/coverage.txt -t $CODECOV_TOKEN
else
Expand Down

0 comments on commit a9a29bc

Please sign in to comment.