From a9a29bcfd03d479d648cf7e3a4b40d5a73d760ff Mon Sep 17 00:00:00 2001 From: Phil Adams Date: Wed, 27 Jan 2021 13:54:17 -0600 Subject: [PATCH] build: fix logic in publishCodeCoverage.sh [skip ci] --- build/publishCodeCoverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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