Skip to content

Commit

Permalink
Add more debugging output to Ruby test script
Browse files Browse the repository at this point in the history
  • Loading branch information
acozzette committed Sep 24, 2021
1 parent 01504ef commit 32b785c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ruby/travis-test.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# Exit on any error.
set -e
set -ex

test_version() {
version=$1
Expand All @@ -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 && \
Expand All @@ -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 && \
Expand All @@ -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 && \
Expand All @@ -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
}

Expand Down

0 comments on commit 32b785c

Please sign in to comment.