diff --git a/build/publishCodeCoverage.sh b/build/publishCodeCoverage.sh index 09801d0..de0fba4 100755 --- a/build/publishCodeCoverage.sh +++ b/build/publishCodeCoverage.sh @@ -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