Apache DataFusion SQL Query Engine
ARROW-3976: [Ruby] Try to upgrade git to avoid errors caused by Homebrew on older git
Kouhei Sutou77bdce5bc63c
diff --git a/.travis.yml b/.travis.ymlindex 42b1275d1c..d1fc6dba35 100644--- a/.travis.yml+++ b/.travis.yml@@ -256,7 +256,6 @@ matrix:- ARROW_TRAVIS_PLASMA=1cache:addons:- rvm: 2.2before_script:- if [ $ARROW_CI_RUBY_AFFECTED != "1" ]; then exit; fi- $TRAVIS_BUILD_DIR/ci/travis_install_osx.shdiff --git a/ci/travis_install_osx.sh b/ci/travis_install_osx.shindex 47d6a637f7..6b6a4b2533 100755--- a/ci/travis_install_osx.sh+++ b/ci/travis_install_osx.sh@@ -23,13 +23,25 @@ set -eif [ "$ARROW_CI_RUBY_AFFECTED" = "1" ]; thenbrew_log_path=brew.logfunction run_brew() {- echo brew "$@" >> ${brew_log_path}- if ! gtimeout --signal=KILL 5m brew "$@" >> ${brew_log_path} 2>&1; then- cat ${brew_log_path}- rm ${brew_log_path}- false- fi+ local i=0+ local n_tries=3+ while [[ $((i++)) < ${n_tries} ]]; do+ echo "${i}: brew" "$@" >> ${brew_log_path}+ if gtimeout --signal=KILL 9m brew "$@" >> ${brew_log_path} 2>&1; then+ break+ elif [[ ${i} == ${n_tries} ]]; then+ cat ${brew_log_path}+ rm ${brew_log_path}+ false+ fi+ done}++ # ARROW-3976 Old versions of git can cause failures when Homebrew prints a+ # donation solicitation. Attempt to update git+ git --version+ run_brew upgrade git+run_brew updaterun_brew upgrade pythonrun_brew uninstall postgis