<commit_before>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-ubuntu-1604
  - INSTANCE=network-ubuntu-1604
  - INSTANCE=volume-ubuntu-1604
  - INSTANCE=smoke-debian-7
  - INSTANCE=smoke-debian-8
  - INSTANCE=smoke-debian-9
  - INSTANCE=smoke-centos-7
  - INSTANCE=smoke-fedora-26
  - INSTANCE=smoke-ubuntu-1404
  - INSTANCE=smoke-ubuntu-1604
  - INSTANCE=smoke-ubuntu-1710

# Ensure we make ChefDK's Ruby the default
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 verify ${INSTANCE}

matrix:
  include:
    - script:
      - chef exec delivery local all
      env: UNIT_AND_LINT=1<commit_msg>Remove Debian 7 testing in Travis<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=resources-ubuntu-1604
  - INSTANCE=network-ubuntu-1604
  - INSTANCE=volume-ubuntu-1604
  - INSTANCE=smoke-debian-8
  - INSTANCE=smoke-debian-9
  - INSTANCE=smoke-centos-7
  - INSTANCE=smoke-fedora-26
  - INSTANCE=smoke-ubuntu-1404
  - INSTANCE=smoke-ubuntu-1604
  - INSTANCE=smoke-ubuntu-1710

# Ensure we make ChefDK's Ruby the default
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 verify ${INSTANCE}

matrix:
  include:
    - script:
      - chef exec delivery local all
      env: UNIT_AND_LINT=1
{'fraction_non_alphanumeric': 0.1069676153091266, 'fraction_numerical': 0.0323846908734053, 'mean_word_length': 3.005893909626719, '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': '1292336', 'n_tokens_mistral': 829, 'n_tokens_neox': 748, 'n_words': 175}