]> source.dussan.org Git - sonarqube.git/commitdiff
Ignore IT plugins for all PRs 484/head
authorDavid Gageot <david@gageot.net>
Thu, 27 Aug 2015 07:00:55 +0000 (09:00 +0200)
committerDavid Gageot <david@gageot.net>
Thu, 27 Aug 2015 07:59:23 +0000 (09:59 +0200)
.travis.yml
travis.sh

index b177290b86df1f2095ca9c657f2c54f9ebe821d6..6176151673044ab20a74f20c7f8fd731409caa79 100644 (file)
@@ -1,9 +1,8 @@
 language: java
 sudo: false
 install: true
-
-jdk:
-  - oraclejdk7
+jdk: oraclejdk7
+script: ./travis.sh
 
 env:
   - JOB=H2
@@ -22,9 +21,6 @@ env:
 matrix:
   fast_finish: true
 
-script:
-  - ./travis.sh
-
 cache:
   directories:
     - '$HOME/.m2/repository'
index fbdcfff667dc15fd805e7072eb7f50f7e09f83a9..0073a88f6c03bff79b427e4e22a4539095734782 100755 (executable)
--- 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