language: ruby
cache: bundler
sudo: false

# Early warning system to catch if Rubygems breaks something
before_install:
  - gem update --system
  - gem uninstall bundler -a -x
  - gem install bundler
  - rm -f .bundle/config

rvm:
  - 2.2.5
  - 2.3.1
script: bundle exec rake spec

language: ruby
cache: bundler
dist: trusty
sudo: false

# Early warning system to catch if Rubygems breaks something
before_install:
  - gem update --system
  - gem uninstall bundler -a -x
  - gem install bundler
  - rm -f .bundle/config

rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - ruby-head
  
matrix:
  allow_failures:
    - rvm: ruby-head

script: bundle exec rake spec

branches:
  only:
  - master

Test on the latest releases of Ruby
Test on the latest releases of Ruby

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
