cobertura

This commit is contained in:
devezhao 2020-10-16 23:07:49 +08:00
parent 9f701223fa
commit c4bcabd6a6
2 changed files with 19 additions and 2 deletions

View file

@ -3,7 +3,6 @@ dist: trusty
language: java
jdk:
- oraclejdk8
# - oraclejdk9
# - oraclejdk11
script: mvn cobertura:cobertura -DskipTests=false

20
pom.xml
View file

@ -62,6 +62,24 @@
<workingDirectory>.deploy</workingDirectory>
</configuration>
</plugin>
<!-- Codecov : `mvn cobertura:cobertura -DskipTests=false -Drbpass=PASSKEY` & `bash <(curl -s https://codecov.io/bash) -t TOKEN` -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<instrumentation>
<excludes>
<exclude>com/rebuild/**/*Test.class</exclude>
</excludes>
</instrumentation>
<formats>
<format>html</format>
<format>xml</format>
</formats>
<check />
</configuration>
</plugin>
</plugins>
<resources>
<resource>
@ -311,7 +329,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>