2017-07-08 12:25:54 +02:00
|
|
|
#!/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
|
|
|
|
|
2017-10-01 14:08:07 +02:00
|
|
|
#
|
|
|
|
# for java9: enable all modules.
|
|
|
|
# coveralls plugin seems to need java.xml.bind module
|
2017-12-15 11:05:36 +01:00
|
|
|
# echo "MAVEN_OPTS='-Xms1g -Xmx1g --add-modules java.se.ee'" > ${HOME}/.mavenrc
|
2017-07-08 12:25:54 +02:00
|
|
|
|
2017-10-01 13:40:49 +02:00
|
|
|
./mvnw clean test jacoco:report coveralls:report -Pcoveralls -B -V
|