5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 03:40:34 +08:00

Add TravisCI job that builds and tests on ARM64 CPU architecture

This commit is contained in:
Martin Tzvetanov Grigorov 2020-11-04 10:18:04 +02:00
parent a9f051c5af
commit b6976ac8d8
No known key found for this signature in database
GPG Key ID: 0BE83EB05F504C16

View File

@ -20,6 +20,15 @@ sudo: true
language: java
jdk:
- oraclejdk8
jobs:
include:
- name: "Build and test on ARM64 CPU architecture"
arch: arm64
env: TEST_TASK=test
services:
- docker
env:
@ -61,6 +70,14 @@ before_install:
./src/scripts/thirdpartytest/start-thirdpartytest-db-containers.sh oracle;
sleep 90;
fi
install:
- if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]; then
sudo apt-get -m install openjdk-8-jdk;
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-arm64;
export PATH=$JAVA_HOME/bin:$PATH;
fi
script:
- ./gradlew $TEST_TASK;
before_cache: