language: ruby
script: bundle exec rake test
sudo: false
cache:
  - bundler
rvm:
  - 2.1
matrix:
  fast_finish: true
  include:
    - rvm: 1.9
      gemfile: gemfiles/chef-11/Gemfile
      script: bundle exec rspec spec

language: ruby
script: bundle exec rake test
sudo: false
cache:
  - bundler
rvm:
  - 2.1
matrix:
  fast_finish: true
  include:
    - rvm: 1.9
      gemfile: gemfiles/chef-11/Gemfile
      script: bundle exec rspec spec
    - rvm: 2.1
      sudo: required
      services:
        - docker
      env: CHEF_VERSION=12 KITCHEN_YAML=.kitchen.docker.yml
      script: bundle exec kitchen test --destroy=always
      install: travis_wait bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}

Test Chef 12 using Docker on Travis
Test Chef 12 using Docker on Travis