Skip to content

Apache DataFusion SQL Query Engine

ARROW-3921: [GLib][CI] Log Homebrew output

Kouhei Sutou0bcb57aedeac
diff --git a/.travis.yml b/.travis.yml
index b877e205b5..25a148fd4f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -332,6 +332,10 @@ after_failure:
fi
ls -la ~/Library/Logs/DiagnosticReports/
cat ~/Library/Logs/DiagnosticReports/*.crash
+ if [[ -f brew.log ]]; then
+ echo "Homebrew log"
+ cat brew.log
+ fi
else
COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)
if [[ -f "$COREFILE" ]]; then
diff --git a/ci/travis_install_osx.sh b/ci/travis_install_osx.sh
index 83ca4a70bc..859d854625 100755
--- a/ci/travis_install_osx.sh
+++ b/ci/travis_install_osx.sh
@@ -20,8 +20,14 @@
set -e
if [ "$ARROW_CI_RUBY_AFFECTED" = "1" ]; then
- brew update
- brew upgrade python
- brew uninstall postgis
- brew bundle --file=$TRAVIS_BUILD_DIR/c_glib/Brewfile
+ brew_log_path=brew.log
+ function run_brew() {
+ echo brew "$@" >> ${brew_log_path}
+ brew "$@" >> ${brew_log_path} 2>&1
+ }
+ run_brew update
+ run_brew upgrade python
+ run_brew uninstall postgis
+ run_brew bundle --file=$TRAVIS_BUILD_DIR/c_glib/Brewfile --verbose
+ rm ${brew_log_path}
fi