before_install: # rubygems 2.7.8 and greater include bundler # - Ruby 2.2, and under, get RubyGems ~> 2.7.10, (includes bundler 1.17.3) # - Anything else, including Ruby 2.3, and above, gets RubyGems ~> 3, and update bundler to latest # - NOTE ON JRUBY: identifies as RUBY_VERSION ~> 1.9, 2.0, 2.3, or 2.5. # - NOTE ON TRUFFLERUBY: identifies as RUBY_VERSION ~> 2.6 - | rv="$(ruby -e 'STDOUT.write RUBY_VERSION')" echo "Discovered Ruby Version of =====> $rv" if [ "$rv" \< "2.3" ]; then gem update --system 2.7.10 elif [ "$rv" \< "2.4" ]; then gem update --system 2.7.10 --no-document elif [ "$rv" = "2.5.3" ]; then # JRUBY 9.2 Identifies as 2.5.3, and it fails to update rubygems gem install --no-document bundler "bundler:>=2.0" else gem update --system --no-document --conservative gem install --no-document bundler "bundler:>=2.0" fi bundler_args: --no-deployment --jobs 3 --retry 3 cache: bundler language: ruby matrix: allow_failures: - rvm: jruby-head - rvm: ruby-head - rvm: truffleruby - rvm: jruby-9.0 fast_finish: true include: # - rvm: jruby-1.7 # targets MRI v1.9 # gemfile: gemfiles/jruby_1.7.gemfile - rvm: 1.9 gemfile: gemfiles/ruby_1.9.gemfile - rvm: 2.0 gemfile: gemfiles/ruby_2.0.gemfile - rvm: jruby-9.0 # targets MRI v2.0 gemfile: gemfiles/jruby_9.0.gemfile - rvm: 2.1 gemfile: gemfiles/ruby_2.1.gemfile # DEPRECATION WARNING # oauth2 1.x series releases are the last to support Ruby versions above # oauth2 2.x series releases will support Ruby versions below, and not above - rvm: jruby-9.1 # targets MRI v2.3 gemfile: gemfiles/jruby_9.1.gemfile - rvm: 2.2 gemfile: gemfiles/ruby_2.2.gemfile - rvm: 2.3 gemfile: gemfiles/ruby_2.3.gemfile - rvm: 2.4 gemfile: gemfiles/ruby_2.4.gemfile - rvm: jruby-9.2 # targets MRI v2.5 gemfile: gemfiles/jruby_9.2.gemfile - rvm: 2.5 gemfile: gemfiles/ruby_2.5.gemfile - rvm: 2.6 gemfile: gemfiles/ruby_2.6.gemfile - rvm: jruby-head gemfile: gemfiles/jruby_head.gemfile - rvm: ruby-head gemfile: gemfiles/ruby_head.gemfile - rvm: truffleruby gemfile: gemfiles/truffleruby.gemfile sudo: false