language: ruby

sudo: false

cache:
  - apt
  - bundler
before_install:
  - gem install bundler

rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - 2.5.1
  - ruby-head

gemfile:
  - gemfiles/Gemfile-rails.4.1.x
  - gemfiles/Gemfile-rails.4.2.x
  - gemfiles/Gemfile-rails.5.0.x
  - gemfiles/Gemfile-rails.5.1.x

addons:
  apt:
    packages:
      - graphviz

matrix:
  exclude:
    - rvm: 2.4.1
      gemfile: gemfiles/Gemfile-rails.4.1.x
    - rvm: 2.4.1
      gemfile: gemfiles/Gemfile-rails.4.2.x
    - rvm: ruby-head
      gemfile: gemfiles/Gemfile-rails.4.1.x
    - rvm: ruby-head
      gemfile: gemfiles/Gemfile-rails.4.2.x
  allow_failures:
    - rvm: ruby-head

language: ruby

sudo: false

cache:
  - apt
  - bundler
before_install:
  - gem install bundler

rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - 2.5.1
  - ruby-head

gemfile:
  - gemfiles/Gemfile-rails.4.1.x
  - gemfiles/Gemfile-rails.4.2.x
  - gemfiles/Gemfile-rails.5.0.x
  - gemfiles/Gemfile-rails.5.1.x

addons:
  apt:
    packages:
      - graphviz

matrix:
  exclude:
    - rvm: 2.4.1
      gemfile: gemfiles/Gemfile-rails.4.1.x
    - rvm: 2.4.1
      gemfile: gemfiles/Gemfile-rails.4.2.x
    - rvm: 2.5.1
      gemfile: gemfiles/Gemfile-rails.4.1.x
    - rvm: ruby-head
      gemfile: gemfiles/Gemfile-rails.4.1.x
    - rvm: ruby-head
      gemfile: gemfiles/Gemfile-rails.4.2.x
  allow_failures:
    - rvm: ruby-head

Exclude Ruby 2.5.1 with Rails 4.1
Exclude Ruby 2.5.1 with Rails 4.1
