From 4773224c744bc461b699dc713e4995e6cf8985b8 Mon Sep 17 00:00:00 2001 From: Micah Silverman Date: Tue, 27 Oct 2015 22:09:02 -0400 Subject: [PATCH] Added code to build coverage report to .travis.yml --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 297c5d7c..e7ab1c34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,9 @@ jdk: - oraclejdk7 - oraclejdk8 +before_install: + - export BUILD_COVERAGE="$([ $TRAVIS_JDK_VERSION == 'openjdk7' ] && echo 'true')" install: echo "No need to run mvn install -DskipTests then mvn install. Running mvn install." script: mvn install +after_success: + - test -z "$BUILD_COVERAGE" || mvn clean cobertura:cobertura coveralls:report