Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ arrow-src.tar.gz
.build_cache_dir
dependency-reduced-pom.xml
MANIFEST
compile_commands.json
build.ninja

# Generated Visual Studio files
*.vcxproj
Expand Down
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

sudo: required
dist: trusty
dist: xenial

services:
- docker
Expand All @@ -38,7 +38,6 @@ before_install:
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo bash -c "echo -e 'Acquire::Retries 10; Acquire::http::Timeout \"20\";' > /etc/apt/apt.conf.d/99-travis-retry"
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -qq
fi
- eval `python $TRAVIS_BUILD_DIR/ci/detect-changes.py`
Expand Down Expand Up @@ -72,10 +71,10 @@ matrix:
- ARROW_TRAVIS_PARQUET=1
- ARROW_TRAVIS_GANDIVA=1
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
- CC="clang-6.0"
- CXX="clang++-6.0"
before_script:
- if [ $ARROW_CI_CPP_AFFECTED != "1" ]; then exit; fi
- export CC="clang-6.0"
- export CXX="clang++-6.0"
- $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh
- $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh
# If either C++ or Python changed, we must install the C++ libraries
Expand All @@ -84,7 +83,7 @@ matrix:
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh || travis_terminate 1
# Separating Valgrind and C++ coverage makes individual jobs shorter
- name: "C++ unit tests w/ gcc 4.8, coverage"
- name: "C++ unit tests w/ gcc 5.4, coverage"
compiler: gcc
language: cpp
os: linux
Expand All @@ -109,7 +108,7 @@ matrix:
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh || travis_terminate 1
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh || travis_terminate 1
- $TRAVIS_BUILD_DIR/ci/travis_upload_cpp_coverage.sh || travis_terminate 1
- name: "Python 2.7 and 3.6 unit tests w/ Valgrind, gcc 4.8, coverage"
- name: "Python 2.7 and 3.6 unit tests w/ Valgrind, gcc 5.4, coverage"
compiler: gcc
language: cpp
os: linux
Expand Down Expand Up @@ -171,17 +170,18 @@ matrix:
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh || travis_terminate 1
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh
- name: "[OS X] Python w/ XCode 6.4"
- name: "[OS X] Python w/ XCode 7.3"
compiler: clang
language: cpp
osx_image: xcode6.4
osx_image: xcode7.3
os: osx
cache:
addons:
env:
- ARROW_TRAVIS_USE_TOOLCHAIN=1
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
- ARROW_TRAVIS_OPTIONAL_INSTALL=1
- MACOSX_DEPLOYMENT_TARGET="10.9"
before_script:
script:
- if [ $ARROW_CI_PYTHON_AFFECTED != "1" ]; then exit; fi
Expand Down Expand Up @@ -224,10 +224,10 @@ matrix:
env:
- ARROW_TRAVIS_PLASMA=1
- ARROW_TRAVIS_PLASMA_JAVA_CLIENT=1
- CC="clang-6.0"
- CXX="clang++-6.0"
before_script:
- if [ $ARROW_CI_INTEGRATION_AFFECTED != "1" ]; then exit; fi
- export CC="clang-6.0"
- export CXX="clang++-6.0"
- $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh
- $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh
- nvm install 11.6
Expand All @@ -247,7 +247,7 @@ matrix:
- $TRAVIS_BUILD_DIR/ci/travis_before_script_js.sh
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_js.sh
- name: "C++ & GLib & Ruby w/ gcc 4.9"
- name: "C++ & GLib & Ruby w/ gcc 5.4"
compiler: gcc
language: cpp
os: linux
Expand All @@ -257,7 +257,6 @@ matrix:
- ARROW_TRAVIS_USE_VENDORED_BOOST=1
- ARROW_TRAVIS_PARQUET=1
- ARROW_TRAVIS_PLASMA=1
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
before_script:
- if [ $ARROW_CI_RUBY_AFFECTED != "1" ]; then exit; fi
- $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh
Expand Down Expand Up @@ -327,6 +326,7 @@ matrix:
language: r
cache: packages
latex: false
dist: trusty
env:
- ARROW_TRAVIS_PARQUET=1
before_install:
Expand Down
4 changes: 2 additions & 2 deletions ci/appveyor-cpp-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ if "%JOB%" == "Build_Debug" (
exit /B 0
)

conda create -n arrow -q -y -c conda-forge/label/cf201901 ^
conda create -n arrow -q -y -c conda-forge ^
--file=ci\conda_env_python.yml ^
python=%PYTHON% ^
numpy=1.14 ^
Expand All @@ -110,7 +110,7 @@ set BOOST_LIBRARYDIR=%CONDA_PREFIX%\Library\lib

if "%JOB%" == "Toolchain" (
@rem Install pre-built "toolchain" packages for faster builds
conda install -q -y -c conda-forge/label/cf201901 ^
conda install -q -y -c conda-forge ^
--file=ci\conda_env_cpp.yml ^
python=%PYTHON%

Expand Down
2 changes: 1 addition & 1 deletion ci/appveyor-cpp-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if defined need_vcvarsall (
)
)

if "%GENERATOR%"=="Ninja" conda install -y -q ninja -c conda-forge/label/cf201901
if "%GENERATOR%"=="Ninja" conda install -y -q ninja

if "%USE_CLCACHE%" == "true" (
@rem Use clcache for faster builds
Expand Down
8 changes: 4 additions & 4 deletions ci/appveyor-cpp-test-cmake-script.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

@rem Validate cmake script behaviour on missed lib in toolchain
set CONDA_ENV=arrow-cmake-tests-libs
conda create -n %CONDA_ENV% -q -y -c conda-forge/label/cf201901
conda install -n %CONDA_ENV% -q -y -c conda-forge/label/cf201901 boost-cpp
conda create -n %CONDA_ENV% -q -y
conda install -n %CONDA_ENV% -q -y -c conda-forge boost-cpp
call activate %CONDA_ENV%

set BUILD_DIR=cpp\build-cmake-test
Expand Down Expand Up @@ -161,8 +161,8 @@ call deactivate

@rem Validate libs availability in conda toolchain
set CONDA_ENV=arrow-cmake-tests-toolchain
conda create -n %CONDA_ENV% -q -y -c conda-forge/label/cf201901
conda install -n %CONDA_ENV% -q -y -c conda-forge/label/cf201901 ^
conda create -n %CONDA_ENV% -q -y
conda install -n %CONDA_ENV% -q -y -c conda-forge ^
--file=ci\conda_env_cpp.yml
call activate %CONDA_ENV%

Expand Down
2 changes: 1 addition & 1 deletion ci/cpp-msvc-build-main.bat
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ popd

call deactivate

conda create -n wheel_test -q -y -c conda-forge/label/cf201901 python=%PYTHON% || exit /B
conda create -n wheel_test -q -y python=%PYTHON% || exit /B

call activate wheel_test

Expand Down
4 changes: 2 additions & 2 deletions ci/travis_before_script_c_glib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh

source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh

conda create -n meson -y -q -c conda-forge/label/cf201901 python=3.6
conda create -n meson -y -q python=3.6
conda activate meson

pip install meson
Expand All @@ -36,7 +36,7 @@ else
autoconf-archive \
gtk-doc-tools \
libgirepository1.0-dev
conda install -q -y ninja -c conda-forge/label/cf201901
conda install -q -y ninja
fi

gem install test-unit gobject-introspection
Expand Down
5 changes: 5 additions & 0 deletions ci/travis_before_script_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ $CMAKE_COMMON_FLAGS \
-DARROW_INSTALL_NAME_RPATH=OFF"
fi

ARROW_CXXFLAGS=""

# Use Ninja for faster builds when using toolchain
if [ $ARROW_TRAVIS_USE_TOOLCHAIN == "1" ]; then
CMAKE_COMMON_FLAGS="$CMAKE_COMMON_FLAGS -GNinja"
# Make sure the toolchain linker (from binutils package) is picked up by clang
ARROW_CXXFLAGS="$ARROW_CXXFLAGS -B$CPP_TOOLCHAIN/bin"
fi

if [ $ARROW_TRAVIS_PLASMA == "1" ]; then
Expand Down Expand Up @@ -135,6 +139,7 @@ if [ $TRAVIS_OS_NAME == "linux" ]; then
$CMAKE_LINUX_FLAGS \
-DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \
-DBUILD_WARNING_LEVEL=$ARROW_BUILD_WARNING_LEVEL \
-DARROW_CXXFLAGS="$ARROW_CXXFLAGS" \
$ARROW_CPP_DIR
else
if [ "$using_homebrew" = "yes" ]; then
Expand Down
10 changes: 10 additions & 0 deletions ci/travis_env_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ if [ $TRAVIS_OS_NAME == "osx" ]; then
fi

export PARQUET_TEST_DATA=$TRAVIS_BUILD_DIR/cpp/submodules/parquet-testing/data

if [ $TRAVIS_OS_NAME == "linux" ]; then
# Use the Ubuntu-provided OpenJDK
unset JAVA_HOME
export TRAVIS_MVN=/usr/bin/mvn
export TRAVIS_JAVA=/usr/bin/java
else
export TRAVIS_MVN=mvn
export TRAVIS_JAVA=java
fi
5 changes: 4 additions & 1 deletion ci/travis_install_clang_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
# specific language governing permissions and limitations
# under the License.

# e.g. "trusty" or "xenial"
DISTRO_CODENAME=`lsb_release -s -c`

wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository -y \
"deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-6.0 main"
"deb http://llvm.org/apt/$DISTRO_CODENAME/ llvm-toolchain-$DISTRO_CODENAME-6.0 main"
sudo apt-get update -qq
sudo apt-get install -q clang-6.0 clang-format-6.0 clang-tidy-6.0
1 change: 0 additions & 1 deletion ci/travis_install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ else
# Help with SSL timeouts to S3
conda config --set remote_connect_timeout_secs 12

conda config --add channels https://repo.continuum.io/pkgs/free
conda config --add channels conda-forge
fi

Expand Down
34 changes: 22 additions & 12 deletions ci/travis_install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,35 @@
# specific language governing permissions and limitations
# under the License.

sudo apt-get install -y -q \
set -e

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 -q g++-4.9
fi

if [ "$ARROW_TRAVIS_VALGRIND" == "1" ]; then
sudo apt-get install -y -q valgrind
sudo apt-get install -y -qq valgrind
fi

if [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then
sudo apt-get install -y -q lcov
sudo apt-get install -y -qq lcov
fi

if [ "$ARROW_TRAVIS_GANDIVA" == "1" -a "$ARROW_USE_TOOLCHAIN" != "1" ]; then
sudo add-apt-repository -y ppa:dluxen/cmake-backports
sudo apt-get update -q
sudo apt-get install -y -q cmake3
sudo rm -rf /usr/local/cmake-*
if [ "$ARROW_TRAVIS_GANDIVA" == "1" ]; then
sudo apt-get install -y -qq llvm-6.0-dev
fi

set -x

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
18 changes: 15 additions & 3 deletions ci/travis_install_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,26 @@ source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh
source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh

if [ ! -e $CPP_TOOLCHAIN ]; then
CONDA_PACKAGES=""

if [ $ARROW_TRAVIS_GANDIVA == "1" ] && [ $TRAVIS_OS_NAME == "osx" ]; then
CONDA_LLVM="llvmdev=6.0.1"
CONDA_PACKAGES="$CONDA_PACKAGES llvmdev=6.0.1"
fi

if [ $TRAVIS_OS_NAME == "linux" ]; then
# Use newer binutils when linking against conda-provided libraries
CONDA_PACKAGES="$CONDA_PACKAGES binutils"
fi

if [ $ARROW_TRAVIS_VALGRIND == "1" ]; then
# Use newer Valgrind
CONDA_PACKAGES="$CONDA_PACKAGES valgrind"
fi

# Set up C++ toolchain from conda-forge packages for faster builds
conda create -y -q -p $CPP_TOOLCHAIN -c conda-forge/label/cf201901 \
conda create -y -q -p $CPP_TOOLCHAIN \
--file=$TRAVIS_BUILD_DIR/ci/conda_env_cpp.yml \
${CONDA_LLVM} \
$CONDA_PACKAGES \
ccache \
ninja \
nomkl \
Expand Down
4 changes: 2 additions & 2 deletions ci/travis_script_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ popd
# Capture C++ coverage info (we wipe the build dir in travis_script_python.sh)
if [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then
pushd $TRAVIS_BUILD_DIR
lcov --quiet --directory . --capture --no-external --output-file $ARROW_CPP_COVERAGE_FILE \
2>&1 | grep -v "WARNING: no data found for /usr/include"
lcov --directory . --capture --no-external --output-file $ARROW_CPP_COVERAGE_FILE \
2>&1 | grep -v "ignoring data for external file"
popd
fi
4 changes: 2 additions & 2 deletions ci/travis_script_gandiva_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ pushd $JAVA_DIR
export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"

# build with gandiva profile
mvn -P gandiva -B install -DskipTests -Dgandiva.cpp.build.dir=$CPP_BUILD_DIR/debug
$TRAVIS_MVN -P gandiva -B install -DskipTests -Dgandiva.cpp.build.dir=$CPP_BUILD_DIR/debug

# run gandiva tests
mvn test -P gandiva -pl gandiva -Dgandiva.cpp.build.dir=$CPP_BUILD_DIR/debug
$TRAVIS_MVN test -P gandiva -pl gandiva -Dgandiva.cpp.build.dir=$CPP_BUILD_DIR/debug

popd
8 changes: 4 additions & 4 deletions ci/travis_script_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export ARROW_CPP_EXE_PATH=$ARROW_CPP_BUILD_DIR/debug
pushd $ARROW_JAVA_DIR

echo "mvn package"
mvn -B clean package 2>&1 > mvn_package.log || (cat mvn_package.log && false)
$TRAVIS_MVN -B clean package 2>&1 > mvn_package.log || (cat mvn_package.log && false)

popd

Expand All @@ -43,14 +43,14 @@ popd
pushd $ARROW_INTEGRATION_DIR

CONDA_ENV_NAME=arrow-integration-test
conda create -y -q -n $CONDA_ENV_NAME -c conda-forge/label/cf201901 python=3.5
conda create -y -q -n $CONDA_ENV_NAME python=3.6
conda activate $CONDA_ENV_NAME

# faster builds, please
conda install -y nomkl -c conda-forge/label/cf201901
conda install -y nomkl

# Expensive dependencies install from Continuum package repo
conda install -y pip numpy six -c conda-forge/label/cf201901
conda install -y pip numpy six

# ARROW-4008: Create a directory to write temporary files since /tmp can be
# unstable in Travis CI
Expand Down
6 changes: 4 additions & 2 deletions ci/travis_script_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@

set -e

source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh

JAVA_DIR=${TRAVIS_BUILD_DIR}/java
pushd $JAVA_DIR

export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
if [ $ARROW_TRAVIS_JAVA_BUILD_ONLY == "1" ]; then
# Save time and make build less verbose by skipping tests and style checks
mvn -DskipTests=true -Dcheckstyle.skip=true -B install
$TRAVIS_MVN -DskipTests=true -Dcheckstyle.skip=true -B install
else
mvn -B install
$TRAVIS_MVN -B install
fi

popd
Loading