You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by di...@apache.org on 2022/03/15 03:51:46 UTC
[rocketmq-exporter] 02/02: fix code coverage
This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-exporter.git
commit 8bc34bcc58f36499f3a35275551bfbe9f5be183d
Author: ShannonDing <li...@163.com>
AuthorDate: Tue Mar 15 11:46:13 2022 +0800
fix code coverage
---
.travis.yml | 2 +-
pom.xml | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 693023b..2c65b9c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,6 +18,6 @@ before_install:
script:
- travis_retry mvn -B clean apache-rat:check
- - travis_retry mvn -B clean install cobertura:cobertura
+ - travis_retry mvn -B clean install
after_success:
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
diff --git a/pom.xml b/pom.xml
index d506f2c..0bee298 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,6 +55,25 @@
<build>
<plugins>
<plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.8.7</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>