language: ruby
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - ruby-head
gemfile:
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
script:
  - bundle exec rake rubocop
  - bundle exec rspec

language: ruby
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - ruby-head
gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
script:
  - bundle exec rake rubocop
  - bundle exec rspec

Add Rails 4.2 to Travis
Add Rails 4.2 to Travis
