forked from SonarSource/sonar-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis.sh
executable file
·50 lines (33 loc) · 1.24 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -euo pipefail
function installTravisTools {
mkdir ~/.local
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v16 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
case "$TESTS" in
CI)
mvn verify -B -e -V
;;
IT-DEV)
installTravisTools
mvn install -T2 -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
build_snapshot "SonarSource/sonarqube"
cd its/plugin
mvn -DjavaVersion="DEV" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
;;
RULING)
installTravisTools
mvn install -Dsource.skip=true -T2 -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
build_snapshot "SonarSource/sonar-lits"
export SONAR_IT_SOURCES=$(pwd)/its/sources
cd its/ruling
mvn clean install -Dmaven.test.redirectTestOutputToFile=false -DjavaVersion=DEV -Dsonar.runtimeVersion=5.1.1 -Dtest=JavaRulingTest#$PROJECT
;;
IT-LTS)
installTravisTools
mvn install -T2 -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
cd its/plugin
mvn -DjavaVersion="DEV" -Dsonar.runtimeVersion="LTS_OR_OLDEST_COMPATIBLE" -Dmaven.test.redirectTestOutputToFile=false install
;;
esac