# install the stable release of the Chef Development Kit (ChefDK)
# use chef-current-precise to install the pre-release
addons:
  apt:
    sources:
      - chef-stable-precise
    packages:
      - chefdk

# https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
install: true

before_script:
  - chef exec berks install

script:
  - chef exec rake travis

branches:
  only:
    - master
    - /^release\/.*$/
    - /^feature\/.*$/
    - /^bugfix\/.*$/

notifications:
  email:
    - development@davidjoos.com

# install the stable release of the Chef Development Kit (ChefDK)
# use chef-current-precise to install the pre-release
addons:
  apt:
    sources:
      - chef-stable-precise
    packages:
      - chefdk

# https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
install: true

before_script:
  - eval "$(/opt/chefdk/bin/chef shell-init bash)" # make ChefDK's Ruby the default
  - chef exec berks install

script:
  - chef exec rake travis

branches:
  only:
    - master
    - /^release\/.*$/
    - /^feature\/.*$/
    - /^bugfix\/.*$/

notifications:
  email:
    - development@davidjoos.com

Make ChefDK's Ruby the default
Make ChefDK's Ruby the default
