From 6fc758c21a54f49a04532ffc3b554b53fc225f08 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sun, 1 Oct 2017 14:08:07 +0200 Subject: [PATCH] [ci] enable all java9 modules for sonar and coveralls --- .travis/build-coveralls.sh | 5 +++++ .travis/build-sonar.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.travis/build-coveralls.sh b/.travis/build-coveralls.sh index a632961024..e250f80d3b 100755 --- a/.travis/build-coveralls.sh +++ b/.travis/build-coveralls.sh @@ -11,5 +11,10 @@ if ! travis_isPush; then exit 0 fi +# +# for java9: enable all modules. +# coveralls plugin seems to need java.xml.bind module +# +echo "MAVEN_OPTS='-Xms1g -Xmx1g --add-modules java.se.ee'" > $HOME/.mavenrc ./mvnw clean test jacoco:report coveralls:report -Pcoveralls -B -V diff --git a/.travis/build-sonar.sh b/.travis/build-sonar.sh index 0d2313efcb..5ded5bcb7f 100755 --- a/.travis/build-sonar.sh +++ b/.travis/build-sonar.sh @@ -11,6 +11,11 @@ if ! travis_isPush; then exit 0 fi +# +# for java9: enable all modules. +# sonar plugin seems to need java.xml.bind module +# +echo "MAVEN_OPTS='-Xms1g -Xmx1g --add-modules java.se.ee'" > $HOME/.mavenrc # Run the build, truncate output due to Travis log limits ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=${SONAR_TOKEN} -B -V