zhou-hao 7 rokov pred
rodič
commit
65dadb05fc
2 zmenil súbory, kde vykonal 30 pridanie a 12 odobranie
  1. 1 2
      .travis.yml
  2. 29 10
      pom.xml

+ 1 - 2
.travis.yml

@@ -1,10 +1,9 @@
 language: java
 sudo: false
-install: true
 jdk:
   - oraclejdk8
 script:
-  - mvn cobertura:cobertura
+  - mvn test
 after_success:
   - bash <(curl -s https://codecov.io/bash)
 cache:

+ 29 - 10
pom.xml

@@ -180,17 +180,36 @@
 
         <plugins>
             <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>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <version>0.8.0</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.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>