aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMário Franco <mario.ffranco@gmail.com>2015-07-20 16:58:46 +0100
committerMário Franco <mario.ffranco@gmail.com>2015-07-20 16:58:46 +0100
commit78c7321e853722d9e4f229d2a9c358319f7e3282 (patch)
tree9d2c6a1d8c62cefb54545fd140b99e6f11fe92bc
parent1b00a01b61ea6e5fb1e738383658d36d9df89b9d (diff)
downloadpf4j-78c7321e853722d9e4f229d2a9c358319f7e3282.tar.gz
pf4j-78c7321e853722d9e4f229d2a9c358319f7e3282.zip
Prepare unit test coverage on Travis and Coveralls
-rw-r--r--.travis.yml5
-rw-r--r--pf4j/pom.xml2
-rw-r--r--pom.xml32
3 files changed, 38 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index af0e470..5942ba6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,8 @@
language: java
jdk:
- oraclejdk7
+ - oraclejdk8
+ - openjdk7
+
+after_success:
+ - mvn clean cobertura:cobertura coveralls:report \ No newline at end of file
diff --git a/pf4j/pom.xml b/pf4j/pom.xml
index 4f05a19..3c10d84 100644
--- a/pf4j/pom.xml
+++ b/pf4j/pom.xml
@@ -40,7 +40,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.8.1</version>
+ <version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
diff --git a/pom.xml b/pom.xml
index 2ebede7..a0bd22e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,6 +33,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
+
+ <junit.version>4.12</junit.version>
+ <cobertura.version>2.7</cobertura.version>
+ <coveralls.version>3.1.0</coveralls.version>
</properties>
<build>
@@ -121,6 +125,34 @@
</properties>
</profile>
<profile>
+ <id>travis</id>
+ <activation>
+ <property>
+ <name>env.TRAVIS</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>${cobertura.version}</version>
+ <configuration>
+ <formats>
+ <format>xml</format>
+ </formats>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eluder.coveralls</groupId>
+ <artifactId>coveralls-maven-plugin</artifactId>
+ <version>${coveralls.version}</version>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>release-sign-artifacts</id>
<activation>
<property>