Skip to content

Commit 96585fd

Browse files
committed
add coveralls config
1 parent 6942950 commit 96585fd

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

pom.xml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,63 @@
263263
</dependencies>
264264
</dependencyManagement>
265265

266+
<build>
267+
<finalName>diff-check</finalName>
268+
<plugins>
269+
<plugin>
270+
<groupId>org.jacoco</groupId>
271+
<artifactId>jacoco-maven-plugin</artifactId>
272+
<version>0.8.10</version>
273+
<configuration>
274+
<excludes>
275+
<exclude>**/Main.class</exclude>
276+
</excludes>
277+
</configuration>
278+
<executions>
279+
<execution>
280+
<id>pre-test</id>
281+
<goals>
282+
<goal>prepare-agent</goal>
283+
</goals>
284+
</execution>
285+
<execution>
286+
<id>post-test</id>
287+
<phase>test</phase>
288+
<goals>
289+
<goal>report</goal>
290+
</goals>
291+
<configuration>
292+
<outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
293+
</configuration>
294+
</execution>
295+
<execution>
296+
<id>report</id>
297+
<phase>prepare-package</phase>
298+
<goals>
299+
<goal>report</goal>
300+
</goals>
301+
</execution>
302+
</executions>
303+
</plugin>
304+
<plugin>
305+
<groupId>org.eluder.coveralls</groupId>
306+
<artifactId>coveralls-maven-plugin</artifactId>
307+
<version>4.3.0</version>
308+
<configuration>
309+
<repoToken>moSVSFee4dHqr39ng3JNyPbC2W3HDTSuA</repoToken>
310+
<jacocoReports>
311+
<jacocoReport>diff-core/target/site/jacoco/jacoco.xml</jacocoReport>
312+
</jacocoReports>
313+
</configuration>
314+
</plugin>
315+
</plugins>
316+
</build>
317+
266318
<modules>
267319
<module>diff-core</module>
268320
<module>diff-checkstyle</module>
269321
<module>diff-pmd</module>
270322
<module>diff-jacoco-maven-plugin</module>
271-
</modules>
323+
</modules>
272324

273325
</project>

0 commit comments

Comments
 (0)