language: ruby
sudo: false
cache: bundler

addons:
  apt:
    sources:
      - chef-stable-trusty
    packages:
      - chefdk
      - wget
      - unzip
      - ssh

before_install:
  - gem install bundler
  - bundle --version
  - gem update --system
  - gem --version

branches:
  only:
  - master

matrix:
  include:
    # WE SUPPORT UPGRADES OF CHEF 11.x on RUBY 1.9.3 VIA chef_client_updater COOKBOOK
  - rvm: 1.9.3
    bundler_args: --without chefstyle functional --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
    script:
      - bundle exec rake unit
      - bundle exec rake functional
  - rvm: 2.0
  - rvm: 2.2.10
  - rvm: 2.3.7
  - rvm: 2.4.4
  - rvm: 2.5.1
  # - rvm: 2.3
  #   env: SUITE=ubuntu
  # - rvm: 2.3
  #   env: SUITE=windows-server
  # - rvm: 2.3
  #   env: SUITE=centos

# before_script:
#   - ci/before-script.sh
#   # put terraform on PATH
#   - export PATH="$PWD/bin:$PATH"

script:
  - bundle exec rake travis:ci
  # - ci/run-acceptance-tests.sh

sudo: false
language: ruby
cache: bundler

addons:
  apt:
    sources:
      - chef-stable-trusty
    packages:
      - chefdk
      - wget
      - unzip
      - ssh

matrix:
  include:
    # WE SUPPORT UPGRADES OF CHEF 11.x on RUBY 1.9.3 VIA chef_client_updater COOKBOOK
  - rvm: 1.9.3
    bundler_args: --without chefstyle functional --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
    script:
      - bundle exec rake unit
      - bundle exec rake functional
    - rvm: 2.0
    - rvm: 2.1.10
    - rvm: 2.2.10
    - rvm: 2.3.7
    - rvm: 2.4.4
    - rvm: 2.5.1
    - rvm: ruby-head
  allow_failures:
    - rvm: ruby-head

branches:
  only:
  - master

script:
  - bundle exec rake travis:ci
  # - ci/run-acceptance-tests.sh

Test on Ruby head in Travis
Test on Ruby head in Travis

Rearrange things to match our other projects as well

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