blob: a5283139a833d5f746b734372d1129545f93c756 [file] [log] [blame]
#!/usr/bin/env bash
# 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.
set -e
source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh
sudo apt-get install -y -qq \
gdb binutils ccache libboost-dev libboost-filesystem-dev \
libboost-system-dev libboost-regex-dev
if [ "$CXX" == "g++-4.9" ]; then
sudo apt-get install -y -qq g++-4.9
fi
if [ "$ARROW_TRAVIS_VALGRIND" == "1" ]; then
sudo apt-get install -y -qq valgrind
fi
if [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then
sudo apt-get install -y -qq lcov
fi
set -x
if [ "$ARROW_TRAVIS_GANDIVA" == "1" ]; then
sudo apt-get install -y -qq llvm-$ARROW_LLVM_MAJOR_VERSION-dev
fi
if [ "$ARROW_TRAVIS_S3" == "1" ]; then
# Download the Minio S3 server into PATH
S3FS_DIR=~/.local/bin/
mkdir -p $S3FS_DIR
wget --directory-prefix $S3FS_DIR https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x $S3FS_DIR/minio
fi
if [ "$ARROW_TRAVIS_USE_SYSTEM" == "1" ]; then
if [ "$DISTRO_CODENAME" == "xenial" ]; then
# TODO(ARROW-4761): Install libzstd-dev once we support zstd<1
# TODO(ARROW-4762): Install rapidjson-dev once we support rapidjson<1.1.0
export ADDITIONAL_APT_PKGS="libre2-dev libbrotli-dev liblz4-dev"
fi
sudo apt-get install -y -q --no-install-recommends \
autoconf \
ca-certificates \
ccache \
cmake \
g++ \
gcc \
git \
libboost-all-dev \
libdouble-conversion-dev \
libsnappy-dev \
libssl-dev \
libgflags-dev \
libprotobuf-dev \
libprotoc-dev \
llvm-7-dev \
clang-7 \
protobuf-compiler \
libbz2-dev \
ninja-build \
pkg-config \
tzdata \
flex \
bison \
${ADDITIONAL_APT_PKGS}
fi
set -x
if [ "$DISTRO_CODENAME" != "trusty" ]; then
sudo apt-get install -y -qq maven
# Remove Travis-specific versions of Java
sudo rm -rf /usr/local/lib/jvm*
sudo rm -rf /usr/local/maven*
hash -r
unset JAVA_HOME
which java
which mvn
java -version
mvn -v
fi