From 6583936f37beadb5f7fb8324e68667756e3db4e7 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Wed, 11 Nov 2020 14:28:57 +0200 Subject: [PATCH] Add TravisCI build config that builds and tests on AMD64 and ARM64 architectures Update Snappy because the old version does not provide native library for aarch64 (ARM64) --- .travis.yml | 46 ++++++++++++++++++++++++++++++++++++++++ ivy/libraries.properties | 4 ++-- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..44e34134d3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,46 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +os: linux +dist: focal + +arch: + - amd64 + - arm64 + +install: + - lscpu + - ARCH=`uname -p` + - echo $ARCH + - JDK_X64="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u272-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u272b10.tar.gz" + - JDK_ARM64="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u272-b10/OpenJDK8U-jdk_aarch64_linux_hotspot_8u272b10.tar.gz" + - if test "X$ARCH" = "Xaarch64"; then JDK_URL=$JDK_ARM64; else JDK_URL=$JDK_X64; fi + - wget -q $JDK_URL && tar xzf OpenJDK*.tar.gz + - mv jdk8* jdk + - export JAVA_HOME=`pwd`/jdk + - wget -q https://mirrors.netix.net/apache/ant/binaries/apache-ant-1.10.9-bin.tar.gz && tar xzf apache-ant-*-bin.tar.gz + - export ANT_HOME=`pwd`/apache-ant-1.10.9 + - wget -q https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && tar xzf apache-maven*.tar.gz + - export M2_HOME=`pwd`/apache-maven-3.6.3 + - export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$M2_HOME/bin:$PATH" + - java -version + - ant -version + - mvn -version + + +script: + - ant clean test-unit + diff --git a/ivy/libraries.properties b/ivy/libraries.properties index dd331079d4..ea24fd9d64 100644 --- a/ivy/libraries.properties +++ b/ivy/libraries.properties @@ -89,10 +89,10 @@ jsr311-api.version=1.1.1 mockito.version=1.8.4 jansi.version=1.9 asm.version=3.3.1 -snappy-java.version=1.1.1.3 +snappy-java.version=1.1.8.1 tez.version=0.7.0 parquet-pig-bundle.version=1.9.0 -snappy.version=0.2 +snappy.version=0.4 leveldbjni.version=1.8 curator.version=2.6.0 htrace.version=3.1.0-incubating