diff options
author | David Gageot <david@gageot.net> | 2015-07-22 09:43:54 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2015-07-22 13:55:37 +0200 |
commit | 4b23bd740da7cc0b7ccfd815c310ada6e86cb8b0 (patch) | |
tree | 9187838e517a9430bae712671a4ff326e22bee4a /travis.sh | |
parent | 95439601477588ba93f5772e16c6fe63b593ccc3 (diff) | |
download | sonarqube-4b23bd740da7cc0b7ccfd815c310ada6e86cb8b0.tar.gz sonarqube-4b23bd740da7cc0b7ccfd815c310ada6e86cb8b0.zip |
Configure plugin ITs (aka it-platform)
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/travis.sh b/travis.sh index 94bb22762ac..864486c6b8b 100755 --- a/travis.sh +++ b/travis.sh @@ -3,10 +3,16 @@ set -euo pipefail function installTravisTools { - curl -sSL https://raw.githubusercontent.com/sonarsource/travis-utils/v10/install.sh | bash + curl -sSL https://raw.githubusercontent.com/sonarsource/travis-utils/v11/install.sh | bash source /tmp/travis-utils/env.sh } +function prepareIts { + installTravisTools + travis_build "SonarSource/sonar-orchestrator" "0fe60edd0978300334ecc9101e4c10bcb05516d0" + travis_start_xvfb +} + case "$JOB" in H2) @@ -42,8 +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 \ @@ -58,39 +63,30 @@ PRANALYSIS) ;; ITS_QUALITYGATE) - installTravisTools - - export DISPLAY=:99.0 - travis_start_xvfb - - mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="qualitygate" + prepareIts + mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="qualitygate" -Dmaven.test.redirectTestOutputToFile=false ;; ITS_ISSUE) - installTravisTools - - export DISPLAY=:99.0 - travis_start_xvfb - - mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="issue" + prepareIts + mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="issue" -Dmaven.test.redirectTestOutputToFile=false ;; ITS_UPDATECENTER) - installTravisTools - - export DISPLAY=:99.0 - travis_start_xvfb - - mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="updatecenter" + prepareIts + mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="updatecenter" -Dmaven.test.redirectTestOutputToFile=false ;; ITS_TESTING) - installTravisTools - - export DISPLAY=:99.0 - travis_start_xvfb + prepareIts + mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="testing" -Dmaven.test.redirectTestOutputToFile=false + ;; - mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="testing" +ITS_PLUGINS) + if [ -n "$GITHUB_TOKEN" ]; then + prepareIts + mvn install -Pit,dev -DskipTests -Dsonar.runtimeVersion=DEV -Dcategory="plugins" -Dmaven.test.redirectTestOutputToFile=false + fi ;; *) |