From 4c4a3b987a6cb0f59c6aa63fafcd12871fa246e9 Mon Sep 17 00:00:00 2001 From: odidev Date: Mon, 18 May 2020 13:25:28 +0530 Subject: [PATCH] Add ARM64 job in Travis-CI --- .travis.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 320c4a9d7e..107f881208 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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' @@ -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