<commit_before>sudo: required
dist: trusty

# install the pre-release chef-dk.  Use chef-stable-trusty to install the stable release
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:
    - /.*/

services: docker

env:
  global:
  - KITCHEN_YAML=.kitchen.yml
  - KITCHEN_LOCAL_YAML=.kitchen.docker.yml
  matrix:
  - INSTANCE=client-centos-6
  - INSTANCE=client-centos-7
  - INSTANCE=client-debian-7
  - INSTANCE=client-debian-8
  - INSTANCE=client-fedora-25
  - INSTANCE=client-opensuse-132
  - INSTANCE=client-opensuse-leap
  - INSTANCE=client-ubuntu-1404
  - INSTANCE=client-ubuntu-1604
  - INSTANCE=yum-pgdg-client-centos-6
  - INSTANCE=yum-pgdg-client-centos-7
  - INSTANCE=yum-pgdg-client-fedora-25
  - INSTANCE=apt-pgdg-client-debian-7
  - INSTANCE=apt-pgdg-client-debian-8
  - INSTANCE=apt-pgdg-client-ubuntu-1404
  - INSTANCE=apt-pgdg-client-ubuntu-1604
  - INSTANCE=yum-pgdg-client-ruby-centos-6
  - INSTANCE=yum-pgdg-client-ruby-centos-7
  - INSTANCE=yum-pgdg-client-ruby-fedora-25
  - INSTANCE=apt-pgdg-client-ruby-debian-7
  - INSTANCE=apt-pgdg-client-ruby-debian-8
  - INSTANCE=apt-pgdg-client-ruby-ubuntu-1404
  - INSTANCE=apt-pgdg-client-ruby-ubuntu-1604
  - INSTANCE=contrib-centos-7
  - INSTANCE=contrib-debian-7
  - INSTANCE=contrib-debian-8
  - INSTANCE=contrib-ubuntu-1404
  - INSTANCE=contrib-ubuntu-1604
  - INSTANCE=contrib-opensuse-132
  - INSTANCE=contrib-opensuse-leap

before_script:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - 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/embedded/bin/kitchen verify ${INSTANCE}

matrix:<commit_msg>Add contrib-centos-6 to the test matrix.<commit_after>sudo: required
dist: trusty

# install the pre-release chef-dk.  Use chef-stable-trusty to install the stable release
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:
    - /.*/

services: docker

env:
  global:
  - KITCHEN_YAML=.kitchen.yml
  - KITCHEN_LOCAL_YAML=.kitchen.docker.yml
  matrix:
  - INSTANCE=client-centos-6
  - INSTANCE=client-centos-7
  - INSTANCE=client-debian-7
  - INSTANCE=client-debian-8
  - INSTANCE=client-fedora-25
  - INSTANCE=client-opensuse-132
  - INSTANCE=client-opensuse-leap
  - INSTANCE=client-ubuntu-1404
  - INSTANCE=client-ubuntu-1604
  - INSTANCE=yum-pgdg-client-centos-6
  - INSTANCE=yum-pgdg-client-centos-7
  - INSTANCE=yum-pgdg-client-fedora-25
  - INSTANCE=apt-pgdg-client-debian-7
  - INSTANCE=apt-pgdg-client-debian-8
  - INSTANCE=apt-pgdg-client-ubuntu-1404
  - INSTANCE=apt-pgdg-client-ubuntu-1604
  - INSTANCE=yum-pgdg-client-ruby-centos-6
  - INSTANCE=yum-pgdg-client-ruby-centos-7
  - INSTANCE=yum-pgdg-client-ruby-fedora-25
  - INSTANCE=apt-pgdg-client-ruby-debian-7
  - INSTANCE=apt-pgdg-client-ruby-debian-8
  - INSTANCE=apt-pgdg-client-ruby-ubuntu-1404
  - INSTANCE=apt-pgdg-client-ruby-ubuntu-1604
  - INSTANCE=contrib-centos-6
  - INSTANCE=contrib-centos-7
  - INSTANCE=contrib-debian-7
  - INSTANCE=contrib-debian-8
  - INSTANCE=contrib-ubuntu-1404
  - INSTANCE=contrib-ubuntu-1604
  - INSTANCE=contrib-opensuse-132
  - INSTANCE=contrib-opensuse-leap

before_script:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - 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/embedded/bin/kitchen verify ${INSTANCE}

matrix:
{'fraction_non_alphanumeric': 0.1337938091583525, 'fraction_numerical': 0.03172166794576618, 'mean_word_length': 3.2967032967032965, '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': '2295616', 'n_tokens_mistral': 1763, 'n_tokens_neox': 1581, 'n_words': 209}