提交 cd473fed 编写于 作者: Z ziheng 提交者: dinglei

[FIX] Travis-CI Java 8 building environments. (#1256)

上级 e9bc3661
...@@ -9,6 +9,9 @@ notifications: ...@@ -9,6 +9,9 @@ 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.
...@@ -20,8 +23,8 @@ matrix: ...@@ -20,8 +23,8 @@ matrix:
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" == "osx" ]]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; 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.
先完成此消息的编辑!
想要评论请 注册