Cobertura did not support java 8 lambda.

So change coverage tools from Cobertura to JaCoCo
This commit is contained in:
pengys5 2017-08-01 15:57:19 +08:00
parent 667c0f470d
commit 638789aa94
2 changed files with 12 additions and 20 deletions

View File

@ -18,5 +18,5 @@ script:
- mvn clean install
after_success:
- mvn clean cobertura:cobertura coveralls:report
- mvn clean test jacoco:report coveralls:report
- bash ./travis/push_image.sh

30
pom.xml
View File

@ -159,25 +159,17 @@
</plugin>
<!-- 覆盖率 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<check>true</check>
<encoding>UTF-8</encoding>
<aggregate>true</aggregate>
<formats>
<format>xml</format>
<format>html</format>
</formats>
<instrumentation>
<excludes>
<exclude>org/skywalking/apm/network/**/*.class</exclude>
<exclude>org/skywalking/apm/collector/remote/grpc/**/*.class</exclude>
<exclude>org/skywalking/apm/agent/core/context/ids/base64/*.class</exclude>
</excludes>
</instrumentation>
</configuration>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>