Skip to content

Commit 45aec5d

Browse files
committed
travis: Add coverage reporting using coveralls
1 parent b08224f commit 45aec5d

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ language: java
22
jdk:
33
- openjdk7
44
- oraclejdk8
5+
deploy:
6+
provider: script
7+
script: mvn clean test jacoco:report coveralls:report -Pcoverage
8+
on:
9+
jdk: oraclejdk8

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,31 @@
123123
</dependency>
124124
</dependencies>
125125
</profile>
126+
<profile>
127+
<id>coverage</id>
128+
<build>
129+
<plugins>
130+
<plugin>
131+
<groupId>org.jacoco</groupId>
132+
<artifactId>jacoco-maven-plugin</artifactId>
133+
<version>0.7.7.201606060606</version>
134+
<executions>
135+
<execution>
136+
<id>prepare-agent</id>
137+
<goals>
138+
<goal>prepare-agent</goal>
139+
</goals>
140+
</execution>
141+
</executions>
142+
</plugin>
143+
<plugin>
144+
<groupId>org.eluder.coveralls</groupId>
145+
<artifactId>coveralls-maven-plugin</artifactId>
146+
<version>4.2.0</version>
147+
</plugin>
148+
</plugins>
149+
</build>
150+
</profile>
126151
<profile>
127152
<id>release</id>
128153
<build>

0 commit comments

Comments
 (0)