<commit_before>sudo: required
dist: trusty

# install the pre-release chef-dk.  Use chef-stable-precise to install the stable release
addons:
  apt:
    sources:
      - chef-stable-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=default-ubuntu-1404
  - INSTANCE=default-ubuntu-1604
  - INSTANCE=default-centos-7
  - INSTANCE=default-centos-6
  - INSTANCE=simple-ubuntu-1404
  - INSTANCE=simple-ubuntu-1604
  - INSTANCE=simple-centos-7
  - INSTANCE=simple-centos-6
  - INSTANCE=read-only-ubuntu-1404
  - INSTANCE=read-only-ubuntu-1604
  - INSTANCE=read-only-centos-7
  - INSTANCE=read-only-centos-6
  - INSTANCE=networking-ubuntu-1404
  - INSTANCE=networking-ubuntu-1604
  - INSTANCE=networking-centos-7
  - INSTANCE=networking-centos-6

  fast_finish: true

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_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}

matrix:
  include:
    - before_script:
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - /opt/chefdk/embedded/bin/chef --version
      - /opt/chefdk/embedded/bin/cookstyle --version
      - /opt/chefdk/embedded/bin/foodcritic --version
    - script:
      - /opt/chefdk/bin/chef exec delivery local all
      env: UNIT_AND_LINT=1<commit_msg>Simplify Travis config and fix ChefDK 2.0 failures<commit_after>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=default-ubuntu-1404
  - INSTANCE=default-ubuntu-1604
  - INSTANCE=default-centos-7
  - INSTANCE=default-centos-6
  - INSTANCE=simple-ubuntu-1404
  - INSTANCE=simple-ubuntu-1604
  - INSTANCE=simple-centos-7
  - INSTANCE=simple-centos-6
  - INSTANCE=read-only-ubuntu-1404
  - INSTANCE=read-only-ubuntu-1604
  - INSTANCE=read-only-centos-7
  - INSTANCE=read-only-centos-6
  - INSTANCE=networking-ubuntu-1404
  - INSTANCE=networking-ubuntu-1604
  - INSTANCE=networking-centos-7
  - INSTANCE=networking-centos-6

  fast_finish: true

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

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

matrix:
  include:
    - before_script:
      - eval "$(chef shell-init bash)"
      - chef --version
      - cookstyle --version
      - foodcritic --version
    - script:
      - chef exec delivery local all
      env: UNIT_AND_LINT=1
{'fraction_non_alphanumeric': 0.11602787456445993, 'fraction_numerical': 0.030662020905923345, 'mean_word_length': 3.026647966339411, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7164814', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1070, 'n_words': 201}