diff --git a/.travis.yml b/.travis.yml index 8f65c72f7d0717ec597b59cf48cc2aa45b458029..4ad315d01d3a6092c60301aa34387e55902729db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,19 +7,19 @@ notifications: language: java +jdk: + - oraclejdk8 + matrix: include: # On OSX, run with default JDK only. # - os: osx # On Linux, run with specific JDKs only. - os: linux - env: CUSTOM_JDK="oraclejdk8" before_install: - echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc - cat ~/.mavenrc - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi script: - travis_retry mvn -B clean apache-rat:check