sudo: required
dist: trusty

addons:
  apt:
    sources:
      - chef-current-trusty
    packages:
      - chefdk

# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

branches:
  only:
    - master

# Ensure we make ChefDK's Ruby the default
before_script:
  - eval "$(chef shell-init bash)"

script:
  - chef --version
  - cookstyle --version
  - foodcritic --version
  - chef exec delivery local all

addons:
  apt:
    sources:
      - chef-current-xenial
    packages:
      - chef-workstation

# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

env:
  - CHEF_LICENSE=accept

branches:
  only:
    - master

# Ensure we make ChefDK's Ruby the default
before_script:
  - eval "$(chef shell-init bash)"

script:
  - chef --version
  - cookstyle --version
  - foodcritic --version
  - chef exec delivery local all

Update for Chef 15 license agreement and Chef Workstation
Update for Chef 15 license agreement and Chef Workstation
