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

services: docker

env:
  matrix:
  - INSTANCE=resources-17050-ubuntu-1604
  - INSTANCE=network-ubuntu-1604
  - INSTANCE=volume-ubuntu-1604
  - INSTANCE=smoke-amazonlinux
  - INSTANCE=smoke-debian-7
  - INSTANCE=smoke-debian-8
  - INSTANCE=smoke-centos-7
  - INSTANCE=smoke-fedora-latest
  - INSTANCE=smoke-ubuntu-1204
  - INSTANCE=smoke-ubuntu-1404
  - INSTANCE=smoke-ubuntu-1604
  - INSTANCE=smoke-ubuntu-1704

# Ensure we make ChefDK's Ruby the default
before_script:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - eval "$(/opt/chefdk/bin/chef shell-init bash)"

script: /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}

matrix:
  include:
    - before_script:
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
    - script:
      - /opt/chefdk/embedded/bin/chef --version
      - /opt/chefdk/embedded/bin/cookstyle --version
      - /opt/chefdk/embedded/bin/cookstyle
      - /opt/chefdk/embedded/bin/rspec

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

services: docker

env:
  matrix:
  - INSTANCE=resources-17050-ubuntu-1604
  - INSTANCE=network-ubuntu-1604
  - INSTANCE=volume-ubuntu-1604
  - INSTANCE=smoke-amazonlinux
  - INSTANCE=smoke-debian-7
  - INSTANCE=smoke-debian-8
  - INSTANCE=smoke-centos-7
  - INSTANCE=smoke-fedora-latest
  - INSTANCE=smoke-ubuntu-1204
  - INSTANCE=smoke-ubuntu-1404
  - INSTANCE=smoke-ubuntu-1604
  - INSTANCE=smoke-ubuntu-1704

# Ensure we make ChefDK's Ruby the default
before_script:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - eval "$(/opt/chefdk/bin/chef shell-init bash)"

script: kitchen verify ${INSTANCE}

matrix:
  include:
    - script:
      - chef exec delivery local all
      env: UNIT_AND_LINT=1

Use delivery local in Travis
Use delivery local in Travis

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