From 32b785ccba60dd0d2d37f60c0fc6d160657afb4c Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Fri, 24 Sep 2021 14:43:58 -0700 Subject: [PATCH] Add more debugging output to Ruby test script --- ruby/travis-test.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ruby/travis-test.sh b/ruby/travis-test.sh index 8980395f78b0..61a5cc12493f 100755 --- a/ruby/travis-test.sh +++ b/ruby/travis-test.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Exit on any error. -set -e +set -ex test_version() { version=$1 @@ -10,7 +10,8 @@ test_version() { if [ "$version" == "jruby-9.2.11.1" ] ; then bash --login -c \ - "rvm install $version && rvm use $version && rvm get head && \ + "set -ex && + rvm install $version && rvm use $version && rvm get head && \ which ruby && \ git clean -f && \ gem install bundler && bundle && \ @@ -20,7 +21,8 @@ test_version() { cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh" elif [ "$version" == "ruby-2.6.0" -o "$version" == "ruby-2.7.0" -o "$version" == "ruby-3.0.2" ] ; then bash --login -c \ - "rvm install $version && rvm use $version && \ + "set -ex && + rvm install $version && rvm use $version && \ which ruby && \ git clean -f && \ gem install bundler -v 1.17.3 && bundle && \ @@ -33,7 +35,8 @@ test_version() { # Recent versions of OSX have deprecated OpenSSL, so we have to explicitly # provide a path to the OpenSSL directory installed via Homebrew. bash --login -c \ - "rvm install $version --with-openssl-dir=`brew --prefix openssl` && \ + "set -ex && \ + rvm install $version --with-openssl-dir=`brew --prefix openssl` && \ rvm use $version && \ which ruby && \ git clean -f && \ @@ -42,6 +45,8 @@ test_version() { rake gc_test && cd ../conformance && make ${RUBY_CONFORMANCE} && cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh" + ls -l /Users/kbuilder/.rvm/log/ + cat /Users/kbuilder/.rvm/log/*/make.log fi }