sudo: required

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=smoke-package-stable-centos-6
  - INSTANCE=smoke-package-stable-centos-7
  - INSTANCE=smoke-package-stable-debian-9
  - INSTANCE=smoke-package-stable-ubuntu-1604
  - INSTANCE=smoke-war-stable-centos-6
  - INSTANCE=smoke-war-stable-centos-7
  - INSTANCE=smoke-war-stable-debian-8
  - INSTANCE=smoke-war-stable-debian-9
  - INSTANCE=smoke-war-stable-ubuntu-1404
  - INSTANCE=smoke-war-stable-ubuntu-1604

before_script:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - eval "$(chef shell-init bash)"
  - chef --version
  - cookstyle --version
  - foodcritic --version

script: KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen verify ${INSTANCE}

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

sudo: required

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=smoke-package-stable-centos-6 # terribly slow; takes more than 45 minutes
  - INSTANCE=smoke-package-stable-centos-7
  - INSTANCE=smoke-package-stable-debian-9
  - INSTANCE=smoke-package-stable-ubuntu-1604
  # - INSTANCE=smoke-war-stable-centos-6 # terribly slow; takes more than 45 minutes
  - INSTANCE=smoke-war-stable-centos-7
  - INSTANCE=smoke-war-stable-debian-8
  - INSTANCE=smoke-war-stable-debian-9
  - INSTANCE=smoke-war-stable-ubuntu-1404
  - INSTANCE=smoke-war-stable-ubuntu-1604

before_script:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - eval "$(chef shell-init bash)"
  - chef --version
  - cookstyle --version
  - foodcritic --version

script: KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen verify ${INSTANCE}

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

Disable Centos 6 in Travis as it takes too long
Disable Centos 6 in Travis as it takes too long

Signed-off-by: Josh Barker <88d7d21fa8a250d4e915db098658a3f5a42acdfb@gmail.com>
