Skip to content

Commit 64cffec

Browse files
author
Vladimir Kotal
committed
disable Sonar for pull requests
1 parent 14ac8b6 commit 64cffec

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/main

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ extra_args=""
88
if [ "x$TRAVIS_REPO_SLUG" == "xoracle/opengrok" ]; then
99
echo "Enabling Jacoco/Coveralls"
1010
extra_args="jacoco:report org.eluder.coveralls:coveralls-maven-plugin:report"
11-
extra_args="$extra_args sonar:sonar"
11+
12+
#
13+
# Sonar seems to only work on master branch commits.
14+
#
15+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
16+
echo "Enabling Sonar"
17+
extra_args="$extra_args sonar:sonar"
18+
fi
1219
fi
1320

1421
mvn -B -V verify $extra_args

0 commit comments

Comments
 (0)