Skip to content

Commit

Permalink
Configure SonarQube analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgay committed May 7, 2017
1 parent d17fcab commit 256a3ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
@@ -1,16 +1,25 @@
sudo: false
language: java
addons:
sonarqube:
organization: "jcgay-github"
token:
secure: "MLW7muRsJiF3Cwrqa/UFeKwNJzSd8g0WVZ30d6Yyy2egkbTiZ2M9U7/WfXQwV1Fd4lMjEOXFyrRcH3cBla4dMRG9JQLGEsBr1FGRJZZ3JiA01hTEWu9bD9vZM0pIj0X8psLZ+NoepzPWrhgMR+AUwrOSaKK95qx2ncEgWq3lAO4="
before_install:
- jdk_switcher use openjdk6
- sed -i "s|\[JDK6\]|$JAVA_HOME|g" etc/toolchains.xml
- jdk_switcher use oraclejdk8
install:
- mvn install -DskipTests=true -B -V -t etc/toolchains.xml
script:
- mvn test -B -t etc/toolchains.xml
- mvn package sonar:sonar -Prun-coverage -B -t etc/toolchains.xml
after_success:
- "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DskipTests --settings etc/deploy-settings.xml -t etc/toolchains.xml"
- mvn verify coveralls:report -Prun-coverage -t etc/toolchains.xml
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
env:
global:
- secure: cttGV5bt0VuZZXHK0yo9rfszAjX67+pcRKMBjGuFEdr3v8uD55ho2qrXAtKEbG5x/g1atBXKD3HhBzK5Mb00XDkF93TQdX9veO6619xcVqQ7LdzPDIbbpX7lrS7vIaUaM77+hCtHFEKZs6+DVyeL93z0Vy7GiIAnRAnGomlmAwc=
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -85,6 +85,8 @@ Go to [Wiki](https://github.com/jcgay/maven-notifier/wiki) to read full configur
# Build status
[![Build Status](https://travis-ci.org/jcgay/maven-notifier.svg?branch=master)](https://travis-ci.org/jcgay/maven-notifier)
[![Coverage Status](https://coveralls.io/repos/jcgay/maven-notifier/badge.svg?branch=master)](https://coveralls.io/r/jcgay/maven-notifier?branch=master)
[![Quality Gate](https://sonarqube.com/api/badges/gate?key=fr.jcgay.maven:maven-notifier)](https://sonarqube.com/dashboard/index/fr.jcgay.maven:maven-notifier)
[![Technical debt ratio](https://sonarqube.com/api/badges/measure?key=fr.jcgay.maven:maven-notifier&metric=sqale_debt_ratio)](https://sonarqube.com/dashboard/index/fr.jcgay.maven:maven-notifier)

# Release

Expand Down

0 comments on commit 256a3ac

Please sign in to comment.