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/10 13:23:15 UTC

[rocketmq-streams] branch main updated: Open codecov by using cobertura

This is an automated email from the ASF dual-hosted git repository.

dinglei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-streams.git


The following commit(s) were added to refs/heads/main by this push:
     new d6686e4  Open codecov by using cobertura
d6686e4 is described below

commit d6686e48ee8908182f945b94827bc7ebc5228b31
Author: ShannonDing <li...@163.com>
AuthorDate: Thu Mar 10 21:23:06 2022 +0800

    Open codecov by using cobertura
---
 .travis.yml |  5 ++---
 pom.xml     | 12 ++++++++++++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index ced009d..2c26308 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,8 +16,7 @@ before_install:
 
 script:
   - travis_retry mvn -B clean apache-rat:check
-  - travis_retry mvn -B clean install jacoco:report
+  - travis_retry mvn -B clean install cobertura:cobertura
 
 after_success:
-  - mvn test
-  - bash <(curl -s https://codecov.io/bash) -t 59121d3e-7f65-4c78-b1cf-3cd3afec07a0 || echo 'Codecov failed to upload'
+  - bash < (curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
diff --git a/pom.xml b/pom.xml
index 350f8ec..8f77245 100644
--- a/pom.xml
+++ b/pom.xml
@@ -208,6 +208,18 @@
                 <version>2.2</version>
             </plugin>
             <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>cobertura-maven-plugin</artifactId>
+                <version>2.7</version>
+                <configuration>
+                    <formats>
+                        <format>html</format>
+                        <format>xml</format>
+                    </formats>
+                    <check />
+                </configuration>
+            </plugin>
+            <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
                 <version>0.8.7</version>