aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2015-08-27 09:00:55 +0200
committerDavid Gageot <david@gageot.net>2015-08-27 09:59:23 +0200
commit21470451d75ad9c1173e5e6853aac0d4ce6e99f8 (patch)
tree71c42e51b96f3a0abdf76382aab9f9ceb656fcd7 /travis.sh
parent7fc1afc677e8507c440d499807b5437ea2ae76dc (diff)
downloadsonarqube-21470451d75ad9c1173e5e6853aac0d4ce6e99f8.tar.gz
sonarqube-21470451d75ad9c1173e5e6853aac0d4ce6e99f8.zip
Ignore IT plugins for all PRs
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/travis.sh b/travis.sh
index fbdcfff667d..0073a88f6c0 100755
--- a/travis.sh
+++ b/travis.sh
@@ -48,7 +48,7 @@ WEB)
;;
PRANALYSIS)
- if [ -n "$SONAR_GITHUB_OAUTH" ] && [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
+ if [ -n "$SONAR_GITHUB_OAUTH" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Start pullrequest analysis"
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -B -e -V -Dmaven.test.failure.ignore=true -Dclirr=true \
-Dsonar.analysis.mode=incremental \
@@ -63,8 +63,12 @@ PRANALYSIS)
;;
ITS)
- prepareIts
- mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory=$IT_CATEGORY -Dmaven.test.redirectTestOutputToFile=false -e
+ if [ "$IT_CATEGORY" == "plugins" ] && [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
+ echo "Ignore this job since it needs access to private test licenses."
+ else
+ prepareIts
+ mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory=$IT_CATEGORY -Dmaven.test.redirectTestOutputToFile=false -e
+ fi
;;
esac