aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-07-16 13:51:30 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-07-20 12:59:15 +0200
commit73b46e381ff0a7a0b3bc280ac45de592e547513a (patch)
treea784542f624aa1a97be6f77eed75eda094be2166 /travis.sh
parentf20b8927e6b8747b37ae750de393215312b774c2 (diff)
downloadsonar-scanner-cli-73b46e381ff0a7a0b3bc280ac45de592e547513a.tar.gz
sonar-scanner-cli-73b46e381ff0a7a0b3bc280ac45de592e547513a.zip
merge it-sonar-runner and update groupId
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh25
1 files changed, 21 insertions, 4 deletions
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