未验证 提交 98aca7ff 编写于 作者: M Martin Grigorov 提交者: GitHub

Add a TravisCI job to build and test on ARM64 (#2539)

上级 0239421f
dist: trusty dist: bionic
notifications: notifications:
email: email:
...@@ -9,22 +9,37 @@ notifications: ...@@ -9,22 +9,37 @@ 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 we install latest OpenJDK 1.8 from Ubuntu repositories
- os: linux - name: Linux x86_64
env: CUSTOM_JDK="oraclejdk8" arch: amd64
- name: Linux aarch64
arch: arm64
cache:
directories:
- $HOME/.m2/repository
before_install: before_install:
- lscpu
- 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
install: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt update
sudo apt install -y openjdk-8-jdk maven
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-${TRAVIS_CPU_ARCH}/"
export PATH="$JAVA_HOME/bin:/usr/share/maven/bin:$PATH"
fi
before_script:
- java -version
- mvn -version
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.
先完成此消息的编辑!
想要评论请 注册