forked from SonarSource/sonarqube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (19 loc) · 824 Bytes
/
.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
language: java
jdk:
- oraclejdk8
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -B -e -V -Panalysis -Dclirr=true
- if [[ $TRAVIS_PULL_REQUEST -ne 'false' ]]; then mvn sonar:sonar -B -e -V -Dsonar.host.url=http://nemo.sonarqube.org -Dsonar.analysis.mode=incremental; fi
install: true
after_success:
- if [[ $TRAVIS_PULL_REQUEST -ne 'false' ]]; then wget https://www.googledrive.com/host/0B-fS5IyruhUSZEFEQ2doVllzVkU -O sq-github.jar; fi
- if [[ $TRAVIS_PULL_REQUEST -ne 'false' ]]; then java -jar sq-github.jar SonarSource/sonarqube target/sonar/sonar-report.json "${TRAVIS_PULL_REQUEST}"; fi
sudo: false
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
before_cache:
- find ~/.m2 -name *SNAPSHOT -type d | xargs rm -rf
notifications:
email: false