language: ruby sudo: false cache: bundler: true rvm: - 2.2.9 - 2.3.6 - 2.4.3 - 2.5.0 - ruby-head gemfile: - gemfiles/rails5_0_0.gemfile - gemfiles/rails5_0_1.gemfile - gemfiles/rails5_0_2.gemfile - gemfiles/rails5_0_3.gemfile - gemfiles/rails5_0_4.gemfile - gemfiles/rails5_0_5.gemfile - gemfiles/rails5_1_0.gemfile - gemfiles/rails5_1_1.gemfile - gemfiles/rails5_1_2.gemfile - gemfiles/rails5_1_3.gemfile - gemfiles/rails5_1_4.gemfile - gemfiles/rails5_1_5.gemfile - gemfiles/rails_edge.gemfile env: - SETUP_TASK=turntable:db:reset BUILD_TASK=spec - SETUP_TASK=turntable:db:reset BUILD_TASK=spec SPEC_OPTS="--tag with_katsubushi" - SETUP_TASK=turntable:activerecord:setup BUILD_TASK=turntable:activerecord:test services: - docker before_install: - docker run -d --name turntable-katsubushi -p 11212:11212 katsubushi/katsubushi:latest -worker-id 1 - gem update --system before_script: - bundle exec rake $SETUP_TASK script: - bundle exec rake $BUILD_TASK matrix: exclude: - rvm: ruby-head - gemfile: gemfiles/rails_edge.gemfile - rvm: 2.3.6 - rvm: 2.4.3 include: - rvm: 2.3.6 gemfile: gemfiles/rails5_1_5.gemfile - rvm: 2.4.3 gemfile: gemfiles/rails5_1_5.gemfile - rvm: 2.5.0 gemfile: gemfiles/rails_edge.gemfile - rvm: ruby-head gemfile: gemfiles/rails_edge.gemfile allow_failures: - rvm: ruby-head - gemfile: gemfiles/rails_edge.gemfile