Skip to content

Commit

Permalink
Add ARM64 job in Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
odidev authored May 18, 2020
1 parent fa2c44a commit 4c4a3b9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ dist: trusty
language: java

install:
- if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]; then sudo apt-get install openjdk-11-jdk && export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64 && export PATH=$JAVA_HOME:$PATH && sudo apt-get install libltdl-dev; fi || true
- if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]; then
sudo apt-get install openjdk-11-jdk libltdl-dev;
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64;
export PATH=$JAVA_HOME:$PATH;
fi || true
- export APACHE_ANT_BASE=$(curl http://apache.mirror.iphh.net/ant/binaries/ | grep "apache-ant-1.9..*-bin.tar.gz" | tail -1 | sed 's/.*href="\(.*\)-bin.tar.gz".*/\1/g')
- 'echo "Apache Ant ARCHIVE: $APACHE_ANT_BASE"'
- '[ "${TRAVIS_OS_NAME}" = "linux" ] && wget http://apache.mirror.iphh.net/ant/binaries/$APACHE_ANT_BASE-bin.tar.gz && tar xzf $APACHE_ANT_BASE-bin.tar.gz && sudo mv $APACHE_ANT_BASE /usr/local/$APACHE_ANT_BASE && sudo rm -f /usr/local/ant && sudo ln -s /usr/local/$APACHE_ANT_BASE /usr/local/ant && sudo ln -s /usr/local/$APACHE_ANT_BASE/bin/ant /usr/local/bin/ant || true'
Expand All @@ -23,12 +27,15 @@ os:
- linux
- osx

env: JDK=11
env: JDK=default

matrix:
include:
- env: JDK=default
- env: JDK=11
os: linux
- env: JDK=11
os: linux
arch: arm64
- env: JDK=12
os: linux
- env: JDK=ea
Expand Down

0 comments on commit 4c4a3b9

Please sign in to comment.