sudo: required cache: bundler language: ruby rvm: - 2.1 - 2.3.3 - 2.4.0 gemfile: - gemfiles/rails_3.2.gemfile - gemfiles/rails_4.0.gemfile - gemfiles/rails_4.1.gemfile - gemfiles/rails_4.2.gemfile - gemfiles/rails_5.0.gemfile - gemfiles/active_record_5.0.gemfile matrix: fast_finish: true exclude: - rvm: 2.1 gemfile: gemfiles/rails_5.0.gemfile - rvm: 2.1 gemfile: gemfiles/active_record_5.0.gemfile - rvm: 2.4.0 gemfile: gemfiles/rails_3.2.gemfile - rvm: 2.4.0 gemfile: gemfiles/rails_4.0.gemfile - rvm: 2.4.0 gemfile: gemfiles/rails_4.1.gemfile services: - docker before_install: - docker-compose up -d - sleep 5 # wait for postgres to become available script: - bundle exec rake spec