Customize travis, add CodeCov

Add jacoco
This commit is contained in:
Eric Bottard
2017-05-17 14:51:39 +02:00
parent d17869175f
commit a676a34299
2 changed files with 43 additions and 0 deletions

View File

@@ -1 +1,11 @@
sudo: false
language: java
cache:
directories:
- $HOME/.m2
jdk:
- oraclejdk8
install: true
build: ./mvnw package
after_success:
- bash <(curl -s https://codecov.io/bash)

33
pom.xml
View File

@@ -117,5 +117,38 @@
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>coverage</id>
<activation>
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<id>agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>