update ci rubies (#774)

This commit is contained in:
Graham Paye 2019-03-14 22:30:04 -07:00 committed by GitHub
parent a3dfab70bd
commit 6c05a78d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -13,23 +13,21 @@ env | grep KOKORO
cd github/google-api-ruby-client/ cd github/google-api-ruby-client/
# Print out Ruby version versions=($RUBY_VERSIONS)
ruby --version
# Temporary workaround for a known bundler+docker issue: # Temporary workaround for a known bundler+docker issue:
# https://github.com/bundler/bundler/issues/6154 # https://github.com/bundler/bundler/issues/6154
export BUNDLE_GEMFILE= export BUNDLE_GEMFILE=
RUBY_VERSIONS=("2.3.8" "2.4.5" "2.5.3" "2.6.1")
# Capture failures # Capture failures
EXIT_STATUS=0 # everything passed EXIT_STATUS=0 # everything passed
function set_failed_status { function set_failed_status {
EXIT_STATUS=1 EXIT_STATUS=1
} }
for version in "${RUBY_VERSIONS[@]}"; do for version in "${versions[@]}"; do
rbenv global "$version" rbenv global "$version"
echo "Using Ruby $version"
(bundle update && bundle exec rake) || set_failed_status (bundle update && bundle exec rake) || set_failed_status
done done