mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
Port the remaining travis utility scripts
This commit is contained in:
7 files changed
+8
-72
No files matched your search
+1
-1
@@ -525,7 +525,7 @@ limitations under the License.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
The script dev/docker_common/wait-for-it.sh has the following license
|
||||
The script ci/scripts/util_wait_for_it.sh has the following license
|
||||
|
||||
Copyright (c) 2016 Giles Hall
|
||||
|
||||
|
||||
File renamed without changes.
@@ -22,7 +22,7 @@ arrow_dir=${1}
|
||||
source_dir=${1}/cpp
|
||||
build_dir=${2:-${source_dir}/build}
|
||||
|
||||
${arrow_dir}/ci/scripts/wait_for_it.sh impala:21050 -t 300 -s -- echo "impala is up"
|
||||
${arrow_dir}/ci/scripts/util_wait_for_it.sh impala:21050 -t 300 -s -- echo "impala is up"
|
||||
|
||||
pushd ${build_dir}
|
||||
|
||||
|
||||
Executable → Regular
+6
-2
@@ -18,6 +18,12 @@
|
||||
|
||||
set -ex
|
||||
|
||||
# TODO(kszucs): github actions doesn't use this file yet, but we should enable
|
||||
# automatic backtrace generation for at least the C++ based builds.
|
||||
|
||||
# Enable core files
|
||||
ulimit -c unlimited -S
|
||||
|
||||
if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; then
|
||||
COREFILE=$(find /cores -maxdepth 1 -type f -name "core.*" | head -n 1)
|
||||
if [[ -f "$COREFILE" ]]; then
|
||||
@@ -32,5 +38,3 @@ else
|
||||
gdb -c "$COREFILE" $TRAVIS_BUILD_DIR/current-exe -ex "thread apply all bt" -ex "set pagination 0" -batch
|
||||
fi
|
||||
fi
|
||||
|
||||
set +ex
|
||||
File renamed without changes.
@@ -1,25 +0,0 @@
|
||||
#!/bin/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 -ex
|
||||
|
||||
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
||||
ccache --show-stats
|
||||
fi
|
||||
|
||||
set +ex
|
||||
@@ -1,43 +0,0 @@
|
||||
#!/bin/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 -ex
|
||||
|
||||
eval "${MATRIX_EVAL}"
|
||||
|
||||
# Enable core files
|
||||
ulimit -c unlimited -S
|
||||
|
||||
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
||||
# Remove apport's core_pattern
|
||||
sudo bash -c "echo '/tmp/core.%p.%E' > /proc/sys/kernel/core_pattern"
|
||||
|
||||
echo -e 'Acquire::Retries 10; Acquire::http::Timeout \"20\";' | \
|
||||
sudo tee /etc/apt/apt.conf.d/99-travis-retry
|
||||
sudo apt-get update -qq
|
||||
|
||||
export CCACHE_COMPRESS=1
|
||||
export CCACHE_COMPRESSLEVEL=5
|
||||
export CCACHE_COMPILERCHECK=content
|
||||
export PATH=/usr/lib/ccache/:$PATH
|
||||
ccache --show-stats
|
||||
fi
|
||||
|
||||
eval "$(python ${TRAVIS_BUILD_DIR}/ci/detect-changes.py)"
|
||||
|
||||
set +ex
|
||||
Reference in new issue
Block a user