Skip to content

Commit 9090767

Browse files
authored
measure test coverage (#46)
1 parent e8156a7 commit 9090767

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
language: java
2+
23
cache:
34
directories:
45
- $HOME/.m2
6+
57
jdk:
68
- openjdk11
9+
10+
after_success:
11+
- mvn clean test jacoco:report coveralls:report

pom.xml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<version>1.2.0-SNAPSHOT</version>
1111

1212
<properties>
13-
<commonslang.version>3.7</commonslang.version>
13+
<commonslang.version>3.7</commonslang.version>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1416
</properties>
1517

1618
<licenses>
@@ -106,4 +108,46 @@
106108
<version>2.2.1</version>
107109
</dependency>
108110
</dependencies>
111+
112+
<profiles>
113+
<profile>
114+
<id>travis</id>
115+
<activation>
116+
<property>
117+
<name>env.TRAVIS</name>
118+
<value>true</value>
119+
</property>
120+
</activation>
121+
<build>
122+
<plugins>
123+
<plugin>
124+
<groupId>org.jacoco</groupId>
125+
<artifactId>jacoco-maven-plugin</artifactId>
126+
<version>0.8.7</version>
127+
<executions>
128+
<execution>
129+
<id>prepare-agent</id>
130+
<goals>
131+
<goal>prepare-agent</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.eluder.coveralls</groupId>
138+
<artifactId>coveralls-maven-plugin</artifactId>
139+
<version>4.3.0</version>
140+
<dependencies>
141+
<dependency>
142+
<groupId>javax.xml.bind</groupId>
143+
<artifactId>jaxb-api</artifactId>
144+
<version>2.3.1</version>
145+
</dependency>
146+
</dependencies>
147+
</plugin>
148+
</plugins>
149+
</build>
150+
</profile>
151+
</profiles>
152+
109153
</project>

0 commit comments

Comments
 (0)