# Use Travis's cointainer based infrastructure
sudo: false
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

services:
  - docker

install:
  - docker pull chef/chefdk

branches:
  only:
    - master

script:
  - docker run -t chef/chefdk chef -v
  - docker run -v $PWD:/cookbook -w /cookbook -t chef/chefdk delivery local all

Switch testing to use the docker ChefDK container
Switch testing to use the docker ChefDK container

This avoids the need to install the packages from the chef apt repo.

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