forked from SonarQubeCommunity/sonar-issuesdensity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis.sh
executable file
·39 lines (26 loc) · 820 Bytes
/
travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -euo pipefail
function installTravisTools {
mkdir ~/.local
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v21 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
installTravisTools
case "$TESTS" in
CI)
mvn verify -B -e -V
;;
IT-DEV)
start_xvfb
build_snapshot "SonarSource/sonarqube"
mvn install -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
cd it
mvn -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
;;
IT-LTS_OR_OLDEST_COMPATIBLE)
start_xvfb
mvn install -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
cd it
mvn -Dsonar.runtimeVersion="5.2-RC2" -Dmaven.test.redirectTestOutputToFile=false install
;;
esac