aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorritchie <ritchie@gmx.at>2015-05-09 09:38:28 +0200
committerritchie <ritchie@gmx.at>2015-05-09 09:38:28 +0200
commitb2067792254729ba7267bdba569b609ab38463ea (patch)
tree08d9bc7bbb3d1a14bed187407b1b2af706f63d69
parentfb42a3003b5ebb3e0b0aacaac60890d3beb4798c (diff)
downloadnanohttpd-b2067792254729ba7267bdba569b609ab38463ea.tar.gz
try to activate test coverage over travis
-rw-r--r--.travis.yml9
-rw-r--r--README.md2
-rw-r--r--pom.xml16
3 files changed, 26 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index ee64f5c..a24f7f5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,11 @@
language: java
-
jdk:
- oraclejdk7
+
+install:
+ - mvn install -DskipTests=true
+
+script: mvn test
+
+after_success:
+ - mvn clean cobertura:cobertura coveralls:report \ No newline at end of file
diff --git a/README.md b/README.md
index 89b8fe8..6e57919 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,8 @@
current build status at https://travis-ci.org [![Build Status](https://api.travis-ci.org/NanoHttpd/nanohttpd.png)](https://travis-ci.org/NanoHttpd/nanohttpd)
+Test Coverage Status [![Coverage Status](https://coveralls.io/repos/NanoHttpd/nanohttpd/badge.svg)](https://coveralls.io/r/NanoHttpd/nanohttpd)
+
## Core Features
* Only one Java file, providing HTTP 1.1 support.
* Two "flavours" - one at "current" standards and one strictly Java 1.1 compatible.
diff --git a/pom.xml b/pom.xml
index 305b332..09f3afc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -218,6 +218,22 @@
<reuseForks>false</reuseForks>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <format>xml</format>
+ <maxmem>256m</maxmem>
+ <!-- aggregated reports for multi-module projects -->
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eluder.coveralls</groupId>
+ <artifactId>coveralls-maven-plugin</artifactId>
+ <version>3.1.0</version>
+ </plugin>
</plugins>
</build>
<reporting>