Apache DataFusion SQL Query Engine
ARROW-3948: [GLib][CI] Set timeout to Homebrew
Kouhei Sutouc0079aef266a
diff --git a/.travis.yml b/.travis.ymlindex 25a148fd4f..b877e205b5 100644--- a/.travis.yml+++ b/.travis.yml@@ -332,10 +332,6 @@ after_failure:fils -la ~/Library/Logs/DiagnosticReports/cat ~/Library/Logs/DiagnosticReports/*.crash- if [[ -f brew.log ]]; then- echo "Homebrew log"- cat brew.log- fielseCOREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)if [[ -f "$COREFILE" ]]; thendiff --git a/ci/travis_install_osx.sh b/ci/travis_install_osx.shindex 859d854625..47d6a637f7 100755--- a/ci/travis_install_osx.sh+++ b/ci/travis_install_osx.sh@@ -17,13 +17,18 @@# specific language governing permissions and limitations# under the License.+set -xset -eif [ "$ARROW_CI_RUBY_AFFECTED" = "1" ]; thenbrew_log_path=brew.logfunction run_brew() {echo brew "$@" >> ${brew_log_path}- brew "$@" >> ${brew_log_path} 2>&1+ if ! gtimeout --signal=KILL 5m brew "$@" >> ${brew_log_path} 2>&1; then+ cat ${brew_log_path}+ rm ${brew_log_path}+ false+ fi}run_brew updaterun_brew upgrade python