<commit_before>---
language: python
python: "2.7"

sudo: required
dist: trusty

# Install ansible
addons:
  apt:
    packages:
    - python-pip
  hosts:
    - alerta-test

install:
  # Install ansible
  - sudo apt-get install -y software-properties-common python-software-properties
  - sudo add-apt-repository -y ppa:ansible/ansible
  - sudo apt-get update -y >/dev/null
  - sudo apt-get install -y ansible
  - echo 'alerta-test' | sudo tee -a /etc/ansible/hosts
  # Trusty fix
  - sudo mkdir /etc/apache2
  - sudo touch /etc/apache2/ports.conf

  # Check ansible version
  - ansible --version

  # Create ansible.cfg with correct roles_path
  - 'printf "[defaults]\nroles_path=../" > ansible.cfg'

env:
  - ANSIBLE_HOST_KEY_CHECKING=False

script:
  - ansible-galaxy install -r requirements.yml
  - ansible-playbook tests/test.yml --syntax-check
  - ansible-playbook -vvvv tests/test.yml

# notifications:
#   webhooks: https://galaxy.ansible.com/api/v1/notifications/
<commit_msg>Apache already installed, juste touch ports.conf<commit_after>---
language: python
python: "2.7"

sudo: required
dist: trusty

# Install ansible
addons:
  apt:
    packages:
    - python-pip
  hosts:
    - alerta-test

install:
  # Install ansible
  - sudo apt-get install -y software-properties-common python-software-properties
  - sudo add-apt-repository -y ppa:ansible/ansible
  - sudo apt-get update -y >/dev/null
  - sudo apt-get install -y ansible
  - echo 'alerta-test' | sudo tee -a /etc/ansible/hosts
  # Trusty fix
  - sudo touch /etc/apache2/ports.conf

  # Check ansible version
  - ansible --version

  # Create ansible.cfg with correct roles_path
  - 'printf "[defaults]\nroles_path=../" > ansible.cfg'

env:
  - ANSIBLE_HOST_KEY_CHECKING=False

script:
  - ansible-galaxy install -r requirements.yml
  - ansible-playbook tests/test.yml --syntax-check
  - ansible-playbook -vvvv tests/test.yml

# notifications:
#   webhooks: https://galaxy.ansible.com/api/v1/notifications/

{'fraction_non_alphanumeric': 0.11809427268119614, 'fraction_numerical': 0.00456158134820071, 'mean_word_length': 3.0617283950617282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4636552', 'n_tokens_mistral': 727, 'n_tokens_neox': 689, 'n_words': 168}