<commit_before>
addons:
  apt:
    sources:
      - chef-current-xenial
    packages:
      - chefdk

# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

branches:
  only:
    - master

services: docker

env:
  matrix:
  - CHEF_VERSION=13 INSTANCE=default-ubuntu-1604
  - CHEF_VERSION=13 INSTANCE=default-ubuntu-1804
  - CHEF_VERSION=13 INSTANCE=default-debian-8
  - CHEF_VERSION=13 INSTANCE=default-debian-9
  - CHEF_VERSION=13 INSTANCE=default-centos-6
  - CHEF_VERSION=13 INSTANCE=default-centos-7
  - CHEF_VERSION=13 INSTANCE=default-fedora-latest
  - CHEF_VERSION=13 INSTANCE=source-ubuntu-1604
  - CHEF_VERSION=13 INSTANCE=source-ubuntu-1804
  - CHEF_VERSION=13 INSTANCE=source-debian-8
  - CHEF_VERSION=13 INSTANCE=source-debian-9
  - CHEF_VERSION=13 INSTANCE=source-fedora-latest
  - CHEF_VERSION=13 INSTANCE=source-centos-7
  - CHEF_VERSION=14 INSTANCE=default-ubuntu-1604
  - CHEF_VERSION=14 INSTANCE=default-ubuntu-1804
  - CHEF_VERSION=14 INSTANCE=default-debian-8
  - CHEF_VERSION=14 INSTANCE=default-debian-9
  - CHEF_VERSION=14 INSTANCE=default-centos-6
  - CHEF_VERSION=14 INSTANCE=default-centos-7
  - CHEF_VERSION=14 INSTANCE=default-fedora-latest
  - CHEF_VERSION=14 INSTANCE=source-ubuntu-1604
  - CHEF_VERSION=14 INSTANCE=source-ubuntu-1804
  - CHEF_VERSION=14 INSTANCE=source-debian-8
  - CHEF_VERSION=14 INSTANCE=source-debian-9
  - CHEF_VERSION=14 INSTANCE=source-fedora-latest
  - CHEF_VERSION=14 INSTANCE=source-centos-7

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 CHEF_VERSION=${CHEF_VERSION} kitchen verify ${INSTANCE}

matrix:
  include:
    - script:
      - chef exec delivery local all
      env: UNIT_AND_LINT=1
<commit_msg>Update for Chef 15 license agreement and Chef Workstation<commit_after>
addons:
  apt:
    sources:
      - chef-current-xenial
    packages:
      - chef-workstation

# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

env:
  - CHEF_LICENSE=accept

branches:
  only:
    - master

services: docker

env:
  matrix:
  - CHEF_VERSION=13 INSTANCE=default-ubuntu-1604
  - CHEF_VERSION=13 INSTANCE=default-ubuntu-1804
  - CHEF_VERSION=13 INSTANCE=default-debian-8
  - CHEF_VERSION=13 INSTANCE=default-debian-9
  - CHEF_VERSION=13 INSTANCE=default-centos-6
  - CHEF_VERSION=13 INSTANCE=default-centos-7
  - CHEF_VERSION=13 INSTANCE=default-fedora-latest
  - CHEF_VERSION=13 INSTANCE=source-ubuntu-1604
  - CHEF_VERSION=13 INSTANCE=source-ubuntu-1804
  - CHEF_VERSION=13 INSTANCE=source-debian-8
  - CHEF_VERSION=13 INSTANCE=source-debian-9
  - CHEF_VERSION=13 INSTANCE=source-fedora-latest
  - CHEF_VERSION=13 INSTANCE=source-centos-7
  - CHEF_VERSION=14 INSTANCE=default-ubuntu-1604
  - CHEF_VERSION=14 INSTANCE=default-ubuntu-1804
  - CHEF_VERSION=14 INSTANCE=default-debian-8
  - CHEF_VERSION=14 INSTANCE=default-debian-9
  - CHEF_VERSION=14 INSTANCE=default-centos-6
  - CHEF_VERSION=14 INSTANCE=default-centos-7
  - CHEF_VERSION=14 INSTANCE=default-fedora-latest
  - CHEF_VERSION=14 INSTANCE=source-ubuntu-1604
  - CHEF_VERSION=14 INSTANCE=source-ubuntu-1804
  - CHEF_VERSION=14 INSTANCE=source-debian-8
  - CHEF_VERSION=14 INSTANCE=source-debian-9
  - CHEF_VERSION=14 INSTANCE=source-fedora-latest
  - CHEF_VERSION=14 INSTANCE=source-centos-7

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 CHEF_VERSION=${CHEF_VERSION} kitchen verify ${INSTANCE}

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

{'fraction_non_alphanumeric': 0.10298582995951416, 'fraction_numerical': 0.05161943319838057, 'mean_word_length': 3.9660804020100504, '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': '1005036', 'n_tokens_mistral': 1698, 'n_tokens_neox': 1483, 'n_words': 249}