diff --git a/.travis.yml b/.travis.yml index 7835f0e612..dda23909e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,7 @@ env: - BUILD=deploy - BUILD=site - BUILD=sonar + - BUILD=coveralls matrix: fast_finish: true diff --git a/.travis/build-coveralls.sh b/.travis/build-coveralls.sh new file mode 100644 index 0000000000..b2af3bb610 --- /dev/null +++ b/.travis/build-coveralls.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e + +source .travis/common-functions.sh + +VERSION=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.5.0:exec | tail -1) +echo "Building PMD Coveralls.io report ${VERSION} on branch ${TRAVIS_BRANCH}" + +if ! travis_isPush; then + echo "Not proceeding, since this is not a push!" + exit 0 +fi + + +travis_wait ./mvnw -q clean test jacoco:report coveralls:report -Pcoveralls + diff --git a/pom.xml b/pom.xml index 8c33063b5d..3e5c5a9133 100644 --- a/pom.xml +++ b/pom.xml @@ -264,7 +264,7 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code 2.17 3.8 1.7 - 0.7.5.201505241946 + 0.7.9 1.9.6 2.10.4 4.5.2-1 @@ -540,19 +540,6 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code - - org.jacoco - jacoco-maven-plugin - ${jacoco.version} - - - default-prepare-agent - - prepare-agent - - - - org.apache.maven.plugins maven-pmd-plugin @@ -997,6 +984,23 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code 1.8 + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + default-prepare-agent + + prepare-agent + + + + + + @@ -1018,6 +1022,32 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code + + + coveralls + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + default-prepare-agent + + prepare-agent + + + + + + org.eluder.coveralls + coveralls-maven-plugin + 4.3.0 + + + +