From efefbaab98e6600af62c2e825811b05776cd36a2 Mon Sep 17 00:00:00 2001 From: laohu <2372554140@qq.com> Date: Tue, 28 May 2019 21:06:54 +0800 Subject: [PATCH] trusty --- .travis.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 36e80cc5..3c80f25e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +dist: trusty + notifications: email: recipients: @@ -7,17 +9,19 @@ notifications: language: java -jdk: - - openjdk11 - - oraclejdk11 - - openjdk9 - - oraclejdk9 - - openjdk8 - - 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 -- GitLab