Skip to content

Commit f74fc3d

Browse files
authored
Don't upload coverity for PRs
1 parent 04fa7e8 commit f74fc3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

travis-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ IS_COVERITY_SCAN_BRANCH=`ruby -e "puts '${TRAVIS_BRANCH}' =~ /\\A$COVERITY_SCAN_
66

77

88
if [ "${FAST_BUILD}" == "true" ]; then
9-
if [ "$COVERITY" == "true" ] && [ "$IS_COVERITY_SCAN_BRANCH" = "1" ]; then
9+
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$COVERITY" == "true" ] && [ "$IS_COVERITY_SCAN_BRANCH" = "1" ]; then
1010
export COVERITY_SCAN_BUILD_COMMAND="mvn package"
1111
curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash
1212
else
1313
mvn package
1414
fi
1515
else
16-
if [ "$COVERITY" == "true" ] && [ "$IS_COVERITY_SCAN_BRANCH" = "1" ]; then
16+
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$COVERITY" == "true" ] && [ "$IS_COVERITY_SCAN_BRANCH" = "1" ]; then
1717
COVERITY_SCAN_BUILD_COMMAND="mvn verify"
1818
curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash
1919
else

0 commit comments

Comments
 (0)