update ci rubies (#774)
This commit is contained in:
		
							parent
							
								
									a3dfab70bd
								
							
						
					
					
						commit
						6c05a78d46
					
				|  | @ -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 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue