forked from cnescatlab/sonar-cnes-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.14 KB
/
.travis.yml
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
language: java
sudo: required
install: true
services:
- docker
addons:
sonarcloud:
organization: "lequal"
jdk:
- oraclejdk8
env:
- sonarqube: none
- sonarqube: 5.6.7
- sonarqube: 6.0
- sonarqube: 6.1
- sonarqube: 6.2
- sonarqube: 6.3.1
- sonarqube: 6.4
- sonarqube: 6.5
- sonarqube: 6.6
- sonarqube: 6.7
- sonarqube: 6.7.1
- sonarqube: 6.7.2
- sonarqube: 6.7.3
- sonarqube: 6.7.4
- sonarqube: 6.7.5
- sonarqube: 7.0
- sonarqube: 7.1
script:
- if [ $sonarqube != "none" ]; then
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package;
chmod +x src/test/it/run-test.sh;
docker run -d -p 127.0.0.1:9000:9000/tcp sonarqube:${sonarqube}-alpine;
echo "Waiting 5 minutes for SonarQube...";
sleep 300;
mvn sonar:sonar -Dsonar.host.url=http://127.0.0.1:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.organization=default-organization -Dsonar.branch.name= ;
src/test/it/run-test.sh;
else mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar;
fi
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
notifications:
email: false