Skip to content

Commit

Permalink
Merge 7deed19 into 648a8cb
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Jan 17, 2019
2 parents 648a8cb + 7deed19 commit a3ea32e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -4,6 +4,7 @@ matrix:
include:
# always build this environment
- jdk: openjdk8
env: ADDITIONAL_MAVEN_ARGS="-Pjacoco coveralls:report"
# only on PR
- jdk: openjdk9
if: type IN (pull_request)
Expand All @@ -20,4 +21,4 @@ cache:
- $HOME/.m2

script:
- mvn -f com.examples.myproject/pom.xml clean verify
- mvn -f com.examples.myproject/pom.xml clean verify $ADDITIONAL_MAVEN_ARGS
42 changes: 42 additions & 0 deletions com.examples.myproject/pom.xml
Expand Up @@ -22,4 +22,46 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.2</version>
<executions>
<execution>
<goals>
<!-- binds by default to the phase "initialize" -->
<goal>prepare-agent</goal>
<!-- binds by default to the phase "verify" -->
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>jacoco</id>
<build>
<plugins>
<plugin>
<!-- configured in pluginManagement -->
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit a3ea32e

Please sign in to comment.