diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..54a30de7da --- /dev/null +++ b/.travis.yml @@ -0,0 +1,41 @@ +# 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: arm64-graviton2 +group: edge +virt: vm +language: generic +sudo: false + +addons: + apt: + update: true + packages: + - openjdk-8-jdk + - ant + - ant-optional + +before_script: + - lscpu + - export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-${TRAVIS_CPU_ARCH}" + - export PATH="$JAVA_HOME/bin:$PATH" + - java -version + - ant -version + +script: + - ant clean test-unit diff --git a/ivy.xml b/ivy.xml index 800d21eaec..056b8ca62a 100644 --- a/ivy.xml +++ b/ivy.xml @@ -181,12 +181,10 @@ - - writer, JobConf job) throws UnsupportedEncodingException { if (FileOutputFormat.getCompressOutput(job)) { int level = job.getInt(DEFLATE_LEVEL_KEY, - DEFAULT_DEFLATE_LEVEL); + CodecFactory.DEFAULT_DEFLATE_LEVEL); String codecName = job.get(AvroJob.OUTPUT_CODEC, DEFLATE_CODEC); CodecFactory factory = codecName.equals(DEFLATE_CODEC) ? CodecFactory.deflateCodec(level)