language: ruby
rvm:
  - 2.3.4
gemfile:
  - gemfiles/rails_4.1.gemfile
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
dist: trusty
sudo: false
cache:
  bundler: true
before_install:
  - gem install bundler
before_script:
  - cp spec/dummy/config/database.yml.ci spec/dummy/config/database.yml
  - RAILS_ENV=test bundle exec rake app:db:create app:db:migrate
script:
  - bundle exec rspec spec
after_script:
  - RAILS_ENV=test bundle exec rake app:db:drop
env:
  global:
    - DEVISE_SECRET_KEY=foo

language: ruby
rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
gemfile:
  - gemfiles/rails_4.1.gemfile
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
matrix:
  exclude:
    - rvm: 2.4.1
      gemfile: gemfiles/rails_4.1.gemfile
  allow_failures:
    - rvm: 2.4.1
dist: trusty
sudo: false
cache:
  bundler: true
before_install:
  - gem install bundler
before_script:
  - cp spec/dummy/config/database.yml.ci spec/dummy/config/database.yml
  - RAILS_ENV=test bundle exec rake app:db:create app:db:migrate
script:
  - bundle exec rspec spec
after_script:
  - RAILS_ENV=test bundle exec rake app:db:drop
env:
  global:
    - DEVISE_SECRET_KEY=foo

Add ruby 2.2 and 2.4 to CI build
Add ruby 2.2 and 2.4 to CI build
