|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +dist: bionic |
| 19 | + |
| 20 | +language: minimal |
| 21 | + |
| 22 | +addons: |
| 23 | + apt: |
| 24 | + packages: |
| 25 | + - python3-pip |
| 26 | + |
| 27 | +services: |
| 28 | + - docker |
| 29 | + |
| 30 | +jobs: |
| 31 | + include: |
| 32 | + - name: "C++ on s390x" |
| 33 | + os: linux |
| 34 | + arch: s390x |
| 35 | + env: |
| 36 | + ARCH: s390x |
| 37 | + ARROW_CI_MODULES: "CPP" |
| 38 | + ARROW_COMPUTE: "OFF" |
| 39 | + ARROW_CSV: "OFF" |
| 40 | + ARROW_DATASET: "OFF" |
| 41 | + ARROW_FILESYSTEM: "OFF" |
| 42 | + ARROW_FLIGHT: "OFF" |
| 43 | + ARROW_GANDIVA: "OFF" |
| 44 | + ARROW_HDFS: "OFF" |
| 45 | + ARROW_IPC: "OFF" |
| 46 | + ARROW_ORC: "OFF" |
| 47 | + ARROW_PARQUET: "OFF" |
| 48 | + ARROW_PLASMA: "OFF" |
| 49 | + PARQUET_BUILD_EXAMPLES: "OFF" |
| 50 | + PARQUET_BUILD_EXECUTABLES: "OFF" |
| 51 | + DOCKER_IMAGE_ID: ubuntu-cpp |
| 52 | + UBUNTU: "20.04" |
| 53 | + allow_failures: |
| 54 | + - arch: s390x |
| 55 | + |
| 56 | +env: |
| 57 | + DOCKER_BUILDKIT: 0 |
| 58 | + COMPOSE_DOCKER_CLI_BUILD: 1 |
| 59 | + ARROW_ENABLE_TIMING_TESTS: "OFF" |
| 60 | + |
| 61 | +before_install: |
| 62 | + - eval "$(python ci/detect-changes.py)" |
| 63 | + - | |
| 64 | + arrow_ci_affected=no |
| 65 | + for arrow_ci_module in ${ARROW_CI_MODULES}; do |
| 66 | + arrow_ci_affected_variable=ARROW_CI_${arrow_ci_module}_AFFECTED |
| 67 | + if [ "$(eval 'echo ${arrow_ci_affected_variable}')" != "1" ]; then |
| 68 | + arrow_ci_affected=yes |
| 69 | + fi |
| 70 | + done |
| 71 | + if [ "${arrow_ci_affected}" = "no" ]; then |
| 72 | + travis_terminate 0 |
| 73 | + fi |
| 74 | +
|
| 75 | +install: |
| 76 | + - pip3 install -e dev/archery[docker] |
| 77 | + |
| 78 | +script: |
| 79 | + - sudo sysctl -w kernel.core_pattern="core.%e.%p" |
| 80 | + # This isn't allowed on Travis CI: |
| 81 | + # /home/travis/.travis/functions: line 109: ulimit: core file size: cannot modify limit: Operation not permitted |
| 82 | + - | |
| 83 | + ulimit -c unlimited || : |
| 84 | + - | |
| 85 | + archery docker run \ |
| 86 | + -e ARROW_COMPUTE=${ARROW_COMPUTE:-ON} \ |
| 87 | + -e ARROW_CSV=${ARROW_CSV:-ON} \ |
| 88 | + -e ARROW_DATASET=${ARROW_DATASET:-ON} \ |
| 89 | + -e ARROW_FILESYSTEM=${ARROW_FILESYSTEM:-ON} \ |
| 90 | + -e ARROW_FLIGHT=${ARROW_FLIGHT:-OFF} \ |
| 91 | + -e ARROW_GANDIVA=${ARROW_GANDIVA:-ON} \ |
| 92 | + -e ARROW_HDFS=${ARROW_HDFS:-ON} \ |
| 93 | + -e ARROW_IPC=${ARROW_IPC:-ON} \ |
| 94 | + -e ARROW_ORC=${ARROW_ORC:-ON} \ |
| 95 | + -e ARROW_PARQUET=${ARROW_PARQUET:-ON} \ |
| 96 | + -e ARROW_PLASMA=${ARROW_PLASMA:-ON} \ |
| 97 | + -e PARQUET_BUILD_EXAMPLES=${PARQUET_BUILD_EXAMPLES:-ON} \ |
| 98 | + -e PARQUET_BUILD_EXECUTABLES=${PARQUET_BUILD_EXECUTABLES:-ON} \ |
| 99 | + --volume ${PWD}/build:/build \ |
| 100 | + ${DOCKER_IMAGE_ID} |
| 101 | +
|
| 102 | +after_success: |
| 103 | + - | |
| 104 | + archery docker push ${DOCKER_IMAGE_ID} || : |
0 commit comments