]> source.dussan.org Git - sonarqube.git/commitdiff
Analyze pull requests with Java 7
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 14 Jan 2016 16:57:40 +0000 (17:57 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 14 Jan 2016 16:57:50 +0000 (17:57 +0100)
travis.sh

index 487424f9dde12f48a7cb82815a0264e006c48607..88715b8ae10cc381683b738014847155c0515b3e 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -24,20 +24,16 @@ CI)
 
     strongEcho 'Build and analyze pull request'
     # this pull request must be built and analyzed (without upload of report)
-    mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify -Panalysis -Dclirr=true -B -e -V
-
-    # Switch to java 8 as the Dory HTTPS certificate is not supported by Java 7
-    export JAVA_HOME=/usr/lib/jvm/java-8-oracle
-    export PATH=$JAVA_HOME/bin:$PATH
-
-    mvn sonar:sonar -B -e -V \
-        -Dsonar.analysis.mode=issues \
-        -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
-        -Dsonar.github.repository=$TRAVIS_REPO_SLUG \
-        -Dsonar.github.oauth=$GITHUB_TOKEN \
-        -Dsonar.host.url=$SONAR_HOST_URL \
-        -Dsonar.login=$SONAR_TOKEN
-
+    mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar \
+      -Panalysis \
+      -Dclirr=true \
+      -Dsonar.analysis.mode=issues \
+      -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
+      -Dsonar.github.repository=$TRAVIS_REPO_SLUG \
+      -Dsonar.github.oauth=$GITHUB_TOKEN \
+      -Dsonar.host.url=$SONAR_HOST_URL \
+      -Dsonar.login=$SONAR_TOKEN \
+      -B -e -V -U
 
   else
     strongEcho 'Build, no analysis'