diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-07 08:39:43 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-07 08:39:43 +0200 |
commit | 90b4fd941e7a3e0eaa4ef39c0a320b965127b5f5 (patch) | |
tree | a8cb5fa340e3d188087267af8e585854e639636c /.travis.yml | |
parent | 27f06a9a42720d73233fbdc74b18308fdf5117d4 (diff) | |
download | sonarqube-90b4fd941e7a3e0eaa4ef39c0a320b965127b5f5.tar.gz sonarqube-90b4fd941e7a3e0eaa4ef39c0a320b965127b5f5.zip |
Enable experimental pull request analysis feature
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 6d93031457b..b5f583ff8e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,15 +3,25 @@ language: java jdk: - oraclejdk8 -script: mvn clean install -e -B +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=preview; 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 |