language: ruby

env:
  global:
  - PATH="/opt/chef/bin:$PATH"

addons:
  apt:
    sources:
    - chef-stable-precise
    packages:
    - chefdk

script:
- make
- git diff --exit-code
- git diff --cached --exit-code
- bundle exec rake
- ./run-foodcritic cookbooks
- ./runtests

language: generic

env:
  global:
  - PATH="/opt/chefdk/bin:/opt/chef/bin:$PATH"

addons:
  apt:
    sources:
    - chef-stable-precise
    packages:
    - chefdk

install: bundle install --jobs=3 --retry=3

script:
- make
- git diff --exit-code
- git diff --cached --exit-code
- bundle exec rake
- ./run-foodcritic cookbooks
- ./runtests

Use the rubocop that comes with chefdk
Use the rubocop that comes with chefdk
