language: ruby
cache: bundler
sudo: false

rvm:
  # Note that Chef 12.0 shipped for Ruby 2.0 for Windows and 2.1 for Linux/mac
  - 2.3.0

before_install:
  - gem update --system
  - gem --version
  # Use the latest bundler
  - gem install bundler

bundler_args: --without=localdev

gemfile:
  - gemfiles/chef_12.gemfile
  - gemfiles/chef_12.7.gemfile
  - gemfiles/chef_13.gemfile
  - gemfiles/chef_14.gemfile

env:
  - API_KEY=somefakeapikey APPLICATION_KEY=somefakeapplicationkey

language: ruby
cache: bundler
sudo: false

rvm:
  # Note that Chef 12.0 shipped for Ruby 2.0 for Windows and 2.1 for Linux/mac
  - 2.1.0
  # Chef 13.0 shipped with Ruby 2.4.1
  - 2.4.1

before_install:
  - gem update --system
  - gem --version
  # Use the latest bundler
  - gem install bundler

bundler_args: --without=localdev

gemfile:
  - gemfiles/chef_12.gemfile
  - gemfiles/chef_12.7.gemfile
  - gemfiles/chef_13.gemfile
  - gemfiles/chef_14.gemfile

env:
  - API_KEY=somefakeapikey APPLICATION_KEY=somefakeapplicationkey

matrix:
  exclude:
    # Chef 13.0 mini ruby 2.3.1
    - rvm: 2.1.0
      gemfile:
        - gemfiles/chef_13.gemfile
        - gemfiles/chef_14.gemfile
  allow_failures:

Use more recent versions of Ruby for more recent versions of Chef.
Use more recent versions of Ruby for more recent versions of Chef.
