1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00
pry--pry-rails/scenarios.yml
Ryan Fitzgerald 035d5c8203 Add Rails 5.2 and 6.0 to build, fixing up issues
In addition to adding scenarios for 5.2 and 6.0, I had to do some
cleanup to get everything working well:

* Replace string-based version checks with numeric ones, and update all
  version checks to treat 6+ the same as 5 (except where necessary).

* Avoid touching `ActiveSupport::Deprecation::DeprecationProxy`
  instances to fix a couple of warnings in Rails 6.

* Update Bundler as part of container setup, because Rails 6's config
  seems to rely on a newer version of Bundler than the one that comes
  with the Ruby image.

* Update the regexes in the `show-routes` spec to be compatible with 5.2
  and up.

* Add a new code path to `show-routes` for Rails 6.

* Upgrade all bundles, just for hygiene.
2018-12-29 15:58:08 -08:00

30 lines
570 B
YAML

project: pryrails
shared:
from: ruby:2.4
cmd: "(bundle check || (gem install bundler && bundle install)) && bundle exec rake"
service:
volumes:
- bundle_{{scenario_name}}:/usr/local/bundle
environment:
BUNDLE_GEMFILE: scenarios/{{scenario_name}}.gemfile
volumes:
bundle_{{scenario_name}}:
scenarios:
rails30:
from: ruby:2.0
rails31:
from: ruby:2.0
rails32:
from: ruby:2.0
rails40:
from: ruby:2.3
rails41:
from: ruby:2.3
rails42: {}
rails50: {}
rails51: {}
rails52: {}
rails60:
from: ruby:2.5