This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a105a3  ARROW-10265: [CI] Use smaller build when cache doesn't exist 
on Travis CI
0a105a3 is described below

commit 0a105a37320b5aa337881cc38f7fa7988e86d3d2
Author: Sutou Kouhei <[email protected]>
AuthorDate: Sat Oct 10 21:13:23 2020 +0900

    ARROW-10265: [CI] Use smaller build when cache doesn't exist on Travis 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 #8424 from kou/travis-use-small-build-without-cache
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 .travis.yml                           | 14 ++++++++++++++
 ci/docker/ubuntu-20.04-cpp.dockerfile |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index d22787d..72eed9b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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"
@@ -131,6 +141,10 @@ script:
   - |
     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} \
       --volume ${PWD}/build:/build \
diff --git a/ci/docker/ubuntu-20.04-cpp.dockerfile 
b/ci/docker/ubuntu-20.04-cpp.dockerfile
index 5b455b9..d2a3fab 100644
--- a/ci/docker/ubuntu-20.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-20.04-cpp.dockerfile
@@ -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 \
@@ -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 \

Reply via email to