language: ruby cache: bundler rvm: - 2.1.10 - 2.3.1 - 2.4.1 gemfile: - gemfiles/rails-4.0-mongo.gemfile - gemfiles/rails-4.0-mongoid.gemfile - gemfiles/rails-4.1-mongo.gemfile - gemfiles/rails-4.1-mongoid.gemfile - gemfiles/rails-4.2-mongo.gemfile - gemfiles/rails-4.2-mongoid.gemfile matrix: fast_finish: true include: - rvm: 2.3.1 gemfile: gemfiles/rails-4.2-mongo.gemfile script: bundle exec rubocop - rvm: 2.3.1 gemfile: gemfiles/rails-4.2-mongo.gemfile script: bundle exec danger exclude: - rvm: 2.4.1 gemfile: gemfiles/rails-4.0-mongo.gemfile - rvm: 2.4.1 gemfile: gemfiles/rails-4.0-mongoid.gemfile - rvm: 2.4.1 gemfile: gemfiles/rails-4.1-mongo.gemfile - rvm: 2.4.1 gemfile: gemfiles/rails-4.1-mongoid.gemfile services: mongodb addons: apt: sources: - mongodb-3.2-precise packages: - mongodb-org-server script: - bundle exec rake test