Skip to content

Commit de26a01

Browse files
committed
Add jacoco and codecov.io
1 parent d7dd30d commit de26a01

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: java
22
jdk:
33
- oraclejdk7
4+
before_install:
5+
- pip install --user codecov
46
after_success:
7+
- codecov
58
- echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
69
- mvn deploy -DskipITs --settings ~/settings.xml

pom.xml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
<maven-release-plugin.version>2.3.1</maven-release-plugin.version>
7575
<maven-surefire-plugin.version>2.17</maven-surefire-plugin.version>
7676
<maven-failsafe-plugin.version>2.17</maven-failsafe-plugin.version>
77-
<cobertura-maven-plugin.version>2.5.1</cobertura-maven-plugin.version>
7877
<maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
7978
</properties>
8079

@@ -279,12 +278,6 @@
279278
</executions>
280279
</plugin>
281280

282-
<plugin>
283-
<groupId>org.codehaus.mojo</groupId>
284-
<artifactId>cobertura-maven-plugin</artifactId>
285-
<version>${cobertura-maven-plugin.version}</version>
286-
</plugin>
287-
288281
<plugin>
289282
<groupId>org.apache.maven.plugins</groupId>
290283
<artifactId>maven-antrun-plugin</artifactId>
@@ -480,6 +473,25 @@
480473
</execution>
481474
</executions>
482475
</plugin>
476+
<plugin>
477+
<groupId>org.jacoco</groupId>
478+
<artifactId>jacoco-maven-plugin</artifactId>
479+
<version>0.7.6.201602180812</version>
480+
<executions>
481+
<execution>
482+
<goals>
483+
<goal>prepare-agent</goal>
484+
</goals>
485+
</execution>
486+
<execution>
487+
<id>report</id>
488+
<phase>test</phase>
489+
<goals>
490+
<goal>report</goal>
491+
</goals>
492+
</execution>
493+
</executions>
494+
</plugin>
483495
</plugins>
484496
</build>
485497
</profile>

0 commit comments

Comments
 (0)