提交 8126cfac 编写于 作者: L laohu

change travis.yml

上级 52005aee
...@@ -7,19 +7,19 @@ notifications: ...@@ -7,19 +7,19 @@ notifications:
language: java language: java
jdk:
- oraclejdk8
matrix: matrix:
include: include:
# On OSX, run with default JDK only. # On OSX, run with default JDK only.
# - os: osx # - os: osx
# On Linux, run with specific JDKs only. # On Linux, run with specific JDKs only.
- os: linux - os: linux
env: CUSTOM_JDK="oraclejdk8"
before_install: before_install:
- echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc - echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc
- cat ~/.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: script:
- travis_retry mvn -B clean apache-rat:check - travis_retry mvn -B clean apache-rat:check
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册