From 0ab9fb6cc8bae81a1b0a7880e8a16c08d381760f Mon Sep 17 00:00:00 2001 From: Chris Aniszczyk Date: Mon, 30 Jun 2014 18:40:40 -0500 Subject: [PATCH] Add coveralls code coverage support Signed-off-by: Chris Aniszczyk --- .travis.yml | 2 ++ README.md | 2 +- pom.xml | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c16d2f86..e5396684 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ language: java jdk: - openjdk7 +after_success: + - mvn clean cobertura:cobertura coveralls:cobertura diff --git a/README.md b/README.md index 6bfba72e..0bcf339d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Hosebird Client (hbc) [![Build Status](https://travis-ci.org/twitter/hbc.png?branch=master)](https://travis-ci.org/twitter/hbc) +# Hosebird Client (hbc) [![Build Status](https://travis-ci.org/twitter/hbc.png?branch=master)](https://travis-ci.org/twitter/hbc) [![Coverage Status](https://coveralls.io/repos/twitter/hbc/badge.png?branch=master)](https://coveralls.io/r/twitter/hbc?branch=master) A Java HTTP client for consuming Twitter's [Streaming API](https://dev.twitter.com/docs/streaming-apis) ## Features diff --git a/pom.xml b/pom.xml index 60603eed..3d856d6c 100644 --- a/pom.xml +++ b/pom.xml @@ -53,6 +53,7 @@ 1.6 1.6 UTF-8 + UTF-8 @@ -117,6 +118,21 @@ + + org.codehaus.mojo + cobertura-maven-plugin + 2.5.2 + + xml + 256m + true + + + + org.eluder.coveralls + coveralls-maven-plugin + 2.2.0 +