Skip to content

Commit

Permalink
Generate code coverage for all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ShammiL committed Aug 23, 2024
1 parent 4b0a711 commit c45c089
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Code coverage upload workflow (codecov)
name: CI Ubuntu build with Code coverage (codecov)

on:
schedule:
- cron: '0 20 * * *'
workflow_dispatch:
push:
branches:
- master

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
18 changes: 18 additions & 0 deletions modules/mqtt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,24 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>file:../../log4j.properties</value>
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
Expand Down
5 changes: 5 additions & 0 deletions modules/msmq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -69,6 +73,7 @@
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
<plugin>
Expand Down
18 changes: 18 additions & 0 deletions modules/rabbitmq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>file:../../log4j.properties</value>
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
9 changes: 6 additions & 3 deletions modules/tcp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -53,10 +57,10 @@
<value>file:../../log4j.properties</value>
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand All @@ -79,7 +83,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
18 changes: 18 additions & 0 deletions modules/testkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>file:../../log4j.properties</value>
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
</plugins>
</build>
</project>
7 changes: 7 additions & 0 deletions modules/udp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>file:../../log4j.properties</value>
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
Expand Down
18 changes: 18 additions & 0 deletions modules/xmpp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,24 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>file:../../log4j.properties</value>
</property>
</systemProperties>
<argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
Expand Down

0 comments on commit c45c089

Please sign in to comment.