Skip to content

Commit

Permalink
Jacoco and Coveralls seems to be working now
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Aug 16, 2017
1 parent 4fc4511 commit 560eb32
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -21,7 +21,7 @@ jdk:
- oraclejdk8

after_success:
- mvn clean -PEnableReportPlugins jacoco:report coveralls:report
- mvn -PEnableReportPlugins coveralls:report

cache:
directories:
Expand Down
1 change: 0 additions & 1 deletion commandline/pom.xml
Expand Up @@ -85,7 +85,6 @@
</executions>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
9 changes: 0 additions & 9 deletions devtools/pom.xml
Expand Up @@ -46,15 +46,6 @@
</configuration>
</plugin>

<!-- Disable coverage analysis for this module -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>
</build>
</project>
19 changes: 12 additions & 7 deletions pom.xml
Expand Up @@ -43,8 +43,9 @@
<slf4j.version>1.7.25</slf4j.version>
<logparser.version>3.1</logparser.version>
<rat.version>0.9</rat.version>
<jacoco.version>0.7.9</jacoco.version>

<surefireArgLine/> <!-- Needed for JaCoCo -->
<jacoco.surefireArgLine/> <!-- Needed for JaCoCo -->
</properties>

<dependencies>
Expand Down Expand Up @@ -129,6 +130,7 @@
<id>EnableReportPlugins</id>
<build>
<plugins>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand All @@ -137,6 +139,12 @@
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<configuration>
<relativeReportDirs>
<relativeReportDir>/jacoco-ut</relativeReportDir>
<!--<relativeReportDir>/jacoco-it</relativeReportDir>-->
</relativeReportDirs>
</configuration>
</plugin>
</plugins>
</build>
Expand All @@ -162,7 +170,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<argLine>@{surefireArgLine} -Xmx1024m</argLine>
<argLine>@{jacoco.surefireArgLine} -Xmx1024m</argLine>
</configuration>
</plugin>

Expand Down Expand Up @@ -318,10 +326,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<configuration>

</configuration>
<version>${jacoco.version}</version>
<executions>
<!--
Prepares the property pointing to the JaCoCo runtime agent which
Expand All @@ -339,7 +344,7 @@
Sets the name of the property containing the settings
for JaCoCo runtime agent.
-->
<propertyName>surefireArgLine</propertyName>
<propertyName>jacoco.surefireArgLine</propertyName>
</configuration>
</execution>
<!--
Expand Down
15 changes: 0 additions & 15 deletions udfs/pom.xml
Expand Up @@ -52,19 +52,4 @@
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>

</plugins>
</build>

</project>
9 changes: 0 additions & 9 deletions webapp/pom.xml
Expand Up @@ -78,15 +78,6 @@
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>

<!-- Disable coverage analysis for this module -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down

0 comments on commit 560eb32

Please sign in to comment.