forked from SonarSource/SonarJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis.sh
executable file
·65 lines (42 loc) · 1.66 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/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
git clone https://github.com/SonarCommunity/javascript-test-sources.git it_sources
export SONAR_IT_SOURCES=$(pwd)/it_sources
build_snapshot "SonarSource/sonarqube"
cd its/plugin
mvn -DjavascriptVersion="DEV" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
;;
IT-LTS)
installTravisTools
mvn install -T2 -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
git clone https://github.com/SonarCommunity/javascript-test-sources.git it_sources
export SONAR_IT_SOURCES=$(pwd)/it_sources
cd its/plugin
mvn -DjavascriptVersion="DEV" -Dsonar.runtimeVersion="LTS_OR_OLDEST_COMPATIBLE" -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"
./run-ruling-test.sh
;;
TYPES)
installTravisTools
mvn install -Dsource.skip=true -T2 -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
build_snapshot "SonarSource/sonar-lits"
cd its/type-inference
mvn clean install -Dmaven.test.redirectTestOutputToFile=false -DjavascriptVersion="DEV" -Dsonar.runtimeVersion="LATEST_RELEASE"
;;
esac