<commit_before>---
services: docker

# Use the new container infrastructure
sudo: yes

env:
  - init: /lib/systemd/systemd
    run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
    playbook: test.yml
    WEB_ROOT_DIR: /var/www/html
  # - distro: centos7
  #   init: /usr/lib/systemd/systemd
  #   run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
  #   playbook: centos-7-test.yml

services:
  - docker

before_install:
  - 'docker pull registry.access.redhat.com/rhel7.3'

script: >
  
  container_id=$(mktemp)

  docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} registry.access.redhat.com/rhel7.3 "${init}" > "${container_id}"

  echo ${WEB_ROOT_DIR}


notifications:
  webhooks: 
    - https://galaxy.ansible.com/api/v1/notifications/
    - https://outlook.office.com/webhook/36824a68-81b0-42e7-a25f-26c2b8bf368e@438d6edb-19d9-48d4-84fe-7737135902d5/TravisCI/948ec3fe9fac4fd9a8941121966a13ca/ee481e59-19dc-48d5-9d40-144b1a6cd74a<commit_msg>add syntax check<commit_after>---
services: docker

# Use the new container infrastructure
sudo: yes

env:
  - init: /lib/systemd/systemd
    run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
    playbook: test.yml
    WEB_ROOT_DIR: /var/www/html
  # - distro: centos7
  #   init: /usr/lib/systemd/systemd
  #   run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
  #   playbook: centos-7-test.yml

services:
  - docker

before_install:
  - 'docker pull registry.access.redhat.com/rhel7.3'

script: >
  
  container_id=$(mktemp)

  docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} registry.access.redhat.com/rhel7.3 "${init}" > "${container_id}"

  docker exec --tty ${container_id} subscription-manager register --username="${RHN_USERNAME}" --password="${<PASSWORD>}"

  docker exec --tty ${container_id} bash /etc/ansible/roles/role_under_test/tests/prep_env.sh

  docker exec --tty ${container_id} ansible-playbook /etc/ansible/roles/role_under_test/tests/test.yml -i /etc/ansible/roles/role_under_test/tests/inventory --syntax-check


notifications:
  webhooks: 
    - https://galaxy.ansible.com/api/v1/notifications/
    - https://outlook.office.com/webhook/36824a68-81b0-42e7-a25f-26c2b8bf368e@438d6edb-19d9-48d4-84fe-7737135902d5/TravisCI/948ec3fe9fac4fd9a8941121966a13ca/ee481e59-19dc-48d5-9d40-144b1a6cd74a
{'fraction_non_alphanumeric': 0.15570358034970858, 'fraction_numerical': 0.07577019150707744, 'mean_word_length': 3.8643724696356276, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1394488', 'n_tokens_mistral': 1097, 'n_tokens_neox': 980, 'n_words': 124}