diff --git a/.travis.yml b/.travis.yml index fd39d90..55c1496 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ cache: - '$HOME/.m2/repository' - '$HOME/.sonar/cache' script: - - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar + - mvn -P jacoco clean package sonar:sonar diff --git a/README.md b/README.md index 4e21ad5..b7a6f86 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # jURAclient -[![Build status](https://travis-ci.org/stklcode/juraclient.svg?branch=master)](https://travis-ci.org/stklcode/juraclient) +[![Build status](https://travis-ci.org/stklcode/juraclient.svg?branch=master)](https://travis-ci.org/stklcode/juraclient) +[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=de.stklcode.pubtrans%3Ajuraclient)](https://sonarcloud.io/dashboard?id=de.stklcode.pubtrans%3Ajuraclient) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/stklcode/juraclient/blob/master/LICENSE.txt) [![Maven Central](https://img.shields.io/maven-central/v/de.stklcode.pubtrans/juraclient.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22de.stklcode.pubtrans%22%20AND%20a%3A%22juraclient%22) diff --git a/pom.xml b/pom.xml index b037816..85e4ac2 100644 --- a/pom.xml +++ b/pom.xml @@ -96,4 +96,60 @@ + + + jacoco + + + org.jacoco + org.jacoco.agent + 0.7.9 + runtime + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + + default-instrument + + instrument + + + + default-restore-instrumented-classes + + restore-instrumented-classes + + + + report + prepare-package + + report + + + ${project.build.directory}/coverage.exec + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.20 + + + ${project.build.directory}/jacoco.exec + + + + + + +