blob: 20418b5891456cca4df8fafc8f3d156e4f3f78e6 (
plain)
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
|
#!/bin/bash
set -euo pipefail
function installTravisTools {
mkdir ~/.local
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v15 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
case "$TESTS" in
CI)
installTravisTools
build_snapshot "SonarSource/sonarqube"
mvn verify -B -e -V
;;
IT-DEV)
installTravisTools
build_snapshot "SonarSource/sonarqube"
mvn install -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true
cd it
mvn -DsonarRunner.version="2.5-SNAPSHOT" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
;;
esac
|