add codecov plugin

This commit is contained in:
Jerry Lee
2016-04-22 18:13:27 +08:00
parent 63f1202ee2
commit a1020f77c7
2 changed files with 37 additions and 0 deletions
+2
View File
@@ -1,5 +1,7 @@
language: java
jdk:
- oraclejdk7
- openjdk7
- oraclejdk8
before_install:
- pip install --user codecov
+35
View File
@@ -310,6 +310,41 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>travis</id>
<activation>
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<!-- for codecov.io -->
<!-- config example: https://github.com/codecov/example-java -->
<!-- plugin docs: http://eclemma.org/jacoco/trunk/doc/ -->
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<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>
<dependencies>