Skip to content

Commit

Permalink
add sonarcloud configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
uwolfer committed Aug 12, 2017
1 parent b2b0852 commit e51b0e1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ jdk:
- openjdk6
# - openjdk7
# - oraclejdk7
- oraclejdk8

addons:
sonarcloud:
organization: "uwolfer-github"
token:
secure: "${SONAR_TOKEN}"

cache:
directories:
- $HOME/.m2/repository/
- $HOME/.sonar/cache/

after_success:
- mvn clean cobertura:cobertura coveralls:report
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
mvn clean cobertura:cobertura coveralls:report jacoco:prepare-agent test jacoco:report sonar:sonar;
fi
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ gerrit-rest-java-client
[![Linux Build](https://travis-ci.org/uwolfer/gerrit-rest-java-client.svg?branch=master)](https://travis-ci.org/uwolfer/gerrit-rest-java-client)
[![Windows Build](https://ci.appveyor.com/api/projects/status/ctm64o74lxdri26s/branch/master?svg=true)](https://ci.appveyor.com/project/uwolfer/gerrit-rest-java-client/branch/master)
[![Coverage Status](https://img.shields.io/coveralls/uwolfer/gerrit-rest-java-client.svg)](https://coveralls.io/r/uwolfer/gerrit-rest-java-client)
[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=com.urswolfer.gerrit.client.rest:gerrit-rest-java-client)](https://sonarcloud.io/dashboard/index/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client)
[![Technical Dept](https://sonarcloud.io/api/badges/measure?key=com.urswolfer.gerrit.client.rest:gerrit-rest-java-client&metric=sqale_debt_ratio)](https://sonarcloud.io/dashboard/index/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client)
[![Dependency Status](https://www.versioneye.com/java/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client/badge)](https://www.versioneye.com/java/com.urswolfer.gerrit.client.rest:gerrit-rest-java-client)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.urswolfer.gerrit.client.rest/gerrit-rest-java-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.urswolfer.gerrit.client.rest/gerrit-rest-java-client)

Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.2.1</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<configuration>
<excludes>
<exclude>**/com/google/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit e51b0e1

Please sign in to comment.