From 73b46e381ff0a7a0b3bc280ac45de592e547513a Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 16 Jul 2015 13:51:30 +0200 Subject: merge it-sonar-runner and update groupId --- travis.sh | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh index d7705a7..7f2d537 100755 --- a/travis.sh +++ b/travis.sh @@ -3,9 +3,26 @@ 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 } -installTravisTools -travis_build_green "SonarSource/sonarqube" "master" -mvn verify -B -e -V +case "$TESTS" in + +CI) + installTravisTools + travis_build_green "SonarSource/sonarqube" "master" + mvn verify -B -e -V + ;; + +IT-DEV) + cat /etc/hosts + rpm -qa | grep glibc + installTravisTools + mvn install -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true + travis_build_green "SonarSource/sonarqube" "master" + cd it + mvn -Dsonar.runtimeVersion="DEV" -DsonarRunner.version="2.5-SNAPSHOT" -Dmaven.test.redirectTestOutputToFile=false install + ;; + +esac -- cgit v1.2.3