Browse Source

Merge pull request #56 from lightglitch/unit-tests

Prepare unit test coverage on Travis and Coveralls
pull/66/head
Decebal Suiu 10 years ago
parent
commit
7f2a048d1f
  1. 6
      .travis.yml
  2. 2
      pf4j/pom.xml
  3. 32
      pom.xml

6
.travis.yml

@ -1,3 +1,9 @@
language: java language: java
jdk: jdk:
- oraclejdk7 - oraclejdk7
- oraclejdk8
- openjdk7
after_success:
- mvn clean cobertura:cobertura coveralls:report

2
pf4j/pom.xml

@ -40,7 +40,7 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.8.1</version> <version>${junit.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

32
pom.xml

@ -33,6 +33,10 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version> <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> </properties>
<build> <build>
@ -120,6 +124,34 @@
<additionalparam>-Xdoclint:none</additionalparam> <additionalparam>-Xdoclint:none</additionalparam>
</properties> </properties>
</profile> </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> <profile>
<id>release-sign-artifacts</id> <id>release-sign-artifacts</id>
<activation> <activation>

Loading…
Cancel
Save