From 6c05a78d461acc073a37d64b6ab4d7e33a116e6b Mon Sep 17 00:00:00 2001 From: Graham Paye Date: Thu, 14 Mar 2019 22:30:04 -0700 Subject: [PATCH] update ci rubies (#774) --- .kokoro/build.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index c0dccf649..fd0421892 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -13,23 +13,21 @@ env | grep KOKORO cd github/google-api-ruby-client/ -# Print out Ruby version -ruby --version +versions=($RUBY_VERSIONS) # Temporary workaround for a known bundler+docker issue: # https://github.com/bundler/bundler/issues/6154 export BUNDLE_GEMFILE= -RUBY_VERSIONS=("2.3.8" "2.4.5" "2.5.3" "2.6.1") - # Capture failures EXIT_STATUS=0 # everything passed function set_failed_status { EXIT_STATUS=1 } -for version in "${RUBY_VERSIONS[@]}"; do +for version in "${versions[@]}"; do rbenv global "$version" + echo "Using Ruby $version" (bundle update && bundle exec rake) || set_failed_status done