1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00

Switch from Appraisal to Roadshow, bump versions, add 5.1

The Appraisal build was becoming really annoying to maintain, since
there's no one version of Ruby that can run the specs across all
supported versions of Rails. Roadshow is a tool that's similar to
Appraisal but uses Docker to test each version in an isolated
environment with the appropriate version of Ruby, at the cost of having
to maintain the Gemfiles manually.
This commit is contained in:
Ryan Fitzgerald 2017-05-06 15:48:21 -07:00
parent be97a215a4
commit 5274190e4c
30 changed files with 235 additions and 81 deletions

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails30.dockerfile
image: pryrails_scenario_rails30
volumes:
- "..:/scenario"
- "bundle_rails30:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails30.gemfile
volumes:
bundle_rails30: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.0
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,7 @@
source "http://rubygems.org"
gem "rails", "~> 3.0.0"
gem "sqlite3"
gem "test-unit"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails31.dockerfile
image: pryrails_scenario_rails31
volumes:
- "..:/scenario"
- "bundle_rails31:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails31.gemfile
volumes:
bundle_rails31: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.0
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,8 @@
source "http://rubygems.org"
gem "rails", "~> 3.1.0"
gem "mongoid"
gem "sqlite3"
gem "test-unit"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails32.dockerfile
image: pryrails_scenario_rails32
volumes:
- "..:/scenario"
- "bundle_rails32:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails32.gemfile
volumes:
bundle_rails32: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.0
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,8 @@
source "http://rubygems.org"
gem "rails", "~> 3.2.0"
gem "mongoid"
gem "sqlite3"
gem "test-unit"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails40.dockerfile
image: pryrails_scenario_rails40
volumes:
- "..:/scenario"
- "bundle_rails40:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails40.gemfile
volumes:
bundle_rails40: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.3
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,6 @@
source "http://rubygems.org"
gem "rails", "~> 4.0.0"
gem "sqlite3"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails41.dockerfile
image: pryrails_scenario_rails41
volumes:
- "..:/scenario"
- "bundle_rails41:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails41.gemfile
volumes:
bundle_rails41: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.3
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,7 @@
source "http://rubygems.org"
gem "rails", "~> 4.1.0"
gem "mongoid"
gem "sqlite3"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails42.dockerfile
image: pryrails_scenario_rails42
volumes:
- "..:/scenario"
- "bundle_rails42:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails42.gemfile
volumes:
bundle_rails42: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.4
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,7 @@
source "http://rubygems.org"
gem "rails", "~> 4.2.0"
gem "mongoid"
gem "sqlite3"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails50.dockerfile
image: pryrails_scenario_rails50
volumes:
- "..:/scenario"
- "bundle_rails50:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails50.gemfile
volumes:
bundle_rails50: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.4
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,7 @@
source "http://rubygems.org"
gem "rails", "~> 5.0.0"
gem "mongoid"
gem "sqlite3"
gemspec :path => "../"

View file

@ -0,0 +1,15 @@
---
version: "2"
services:
scenario:
build:
context: ..
dockerfile: scenarios/rails51.dockerfile
image: pryrails_scenario_rails51
volumes:
- "..:/scenario"
- "bundle_rails51:/usr/local/bundle"
environment:
BUNDLE_GEMFILE: scenarios/rails51.gemfile
volumes:
bundle_rails51: {}

View file

@ -0,0 +1,5 @@
FROM ruby:2.4
RUN mkdir -p /scenario
WORKDIR /scenario
ENV LANG=C.UTF-8
CMD (bundle check || bundle install) && bundle exec rake

View file

@ -0,0 +1,7 @@
source "http://rubygems.org"
gem "rails", "~> 5.1.0"
gem "mongoid"
gem "sqlite3"
gemspec :path => "../"