Skip to content

Commit 85bd887

Browse files
committed
add coveralls config
1 parent 6942950 commit 85bd887

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

pom.xml

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

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

273320
</project>

0 commit comments

Comments
 (0)