Skip to content

Commit

Permalink
ARROW-10265: [CI] Use smaller build when cache doesn't exist on Travi…
Browse files Browse the repository at this point in the history
…s CI

Because Travis CI has "No output has been received in the last 10m0s"
limitation. If we build many modules, we will reach the limitation.

Closes apache#8424 from kou/travis-use-small-build-without-cache

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou committed Oct 10, 2020
1 parent 5324d98 commit 0a105a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ jobs:
-e ARROW_USE_GLOG=OFF
-e CMAKE_UNITY_BUILD=ON
"
# We need to use smaller build when cache doesn't exist
# because Travis CI has "No output has been received in the
# last 10m0s" limitation. If we build many modules, we reach
# the limitation.
DOCKER_RUN_ARGS_NO_CACHE: >-
"
-e ARROW_BUILD_TESTS=OFF
-e ARROW_GANDIVA=OFF
-e ARROW_PARQUET=OFF
"
UBUNTU: "20.04"

- name: "C++ on s390x"
Expand Down Expand Up @@ -130,6 +140,10 @@ script:
# /home/travis/.travis/functions: line 109: ulimit: core file size: cannot modify limit: Operation not permitted
- |
ulimit -c unlimited || :
- |
if [ $(ls $TRAVIS_BUILD_DIR/.docker | wc -l) -eq 0 ]; then
DOCKER_RUN_ARGS="${DOCKER_RUN_ARGS} ${DOCKER_RUN_ARGS_NO_CACHE}"
fi
- |
archery docker run \
${DOCKER_RUN_ARGS} \
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/ubuntu-20.04-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ RUN /arrow/ci/scripts/install_minio.sh ${arch} linux latest /usr/local
# - libprotobuf-dev only provide sources
ENV ARROW_BUILD_TESTS=ON \
ARROW_DEPENDENCY_SOURCE=SYSTEM \
ARROW_S3=ON \
ARROW_DATASET=ON \
ARROW_FLIGHT=OFF \
ARROW_GANDIVA=ON \
Expand All @@ -103,6 +102,7 @@ ENV ARROW_BUILD_TESTS=ON \
ARROW_ORC=ON \
ARROW_PARQUET=ON \
ARROW_PLASMA=ON \
ARROW_S3=ON \
ARROW_USE_ASAN=OFF \
ARROW_USE_CCACHE=ON \
ARROW_USE_UBSAN=OFF \
Expand Down

0 comments on commit 0a105a3

Please sign in to comment.