From be272807f5ee42c625d468818110f6d6a356a49c Mon Sep 17 00:00:00 2001 From: Gary Brown Date: Sat, 10 Jun 2017 15:44:40 +0100 Subject: [PATCH] Add coveralls code coverage support Resolves #97 --- .travis.yml | 3 +++ modules/parser/pom.xml | 9 ++++++++- pom.xml | 29 +++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0f95eaf29..453c7713d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,9 @@ branches: except: - /^[0-9]/ +after_success: + - mvn jacoco:report coveralls:report + env: global: # Ex. travis encrypt -r org/repo GH_TOKEN=XXX-https://github.com/settings/tokens-XXX diff --git a/modules/parser/pom.xml b/modules/parser/pom.xml index 3194e310c..cfa95a425 100644 --- a/modules/parser/pom.xml +++ b/modules/parser/pom.xml @@ -43,7 +43,14 @@ - + + org.eluder.coveralls + coveralls-maven-plugin + + true + + + diff --git a/pom.xml b/pom.xml index 68329b373..9b21f8d58 100644 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,9 @@ 2.10.4 0.3.4 0.1.0 + + 4.3.0 + 0.7.9 @@ -255,6 +258,7 @@ **/Scribble.g **/Scribble-0.3.original **/IGNORE + .coveralls.yml @@ -286,6 +290,31 @@ scribble-java + + + org.eluder.coveralls + coveralls-maven-plugin + ${version.coveralls-maven-plugin} + + UTF-8 + + ${project.basedir}/modules/parser/target/generated-sources/antlr3 + + + + + org.jacoco + jacoco-maven-plugin + ${version.jacoco-maven-plugin} + + + prepare-agent + + prepare-agent + + + +