Skip to content

Commit

Permalink
Improve execution of integration tests on Travis
Browse files Browse the repository at this point in the history
Do not re-build SQ master from scratch.
  • Loading branch information
Simon Brandhof committed Feb 5, 2016
1 parent 34eaf4e commit 23ef1a9
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions travis.sh
Expand Up @@ -2,11 +2,12 @@

set -euo pipefail

function installTravisTools {
function configureTravis {
mkdir ~/.local
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v21 | tar zx --strip-components 1 -C ~/.local
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v25 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
configureTravis

case "$TESTS" in

Expand All @@ -15,23 +16,17 @@ CI)
;;

IT-DEV)
installTravisTools

mvn package -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true

build_snapshot "SonarSource/sonarqube"
mvn package -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true -e -B

cd its/plugin
mvn -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
mvn -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false verify -e -B -V
;;

IT-LTS)
installTravisTools

mvn package -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
mvn package -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true -e -B

cd its/plugin
mvn -Dsonar.runtimeVersion="LTS" -Dmaven.test.redirectTestOutputToFile=false install
mvn -Dsonar.runtimeVersion="LTS" -Dmaven.test.redirectTestOutputToFile=false verify -e -B
;;

esac

0 comments on commit 23ef1a9

Please sign in to comment.