<commit_before>- builder:
    name: install-ansible
    builders:
      - shell: |
          echo Installing ansible into /opt/venvs/ansible
          echo Be sure to source /opt/venvs/ansible/bin/activate in
          echo your builder step to use this virtualenv

          #TODO: bake this into the image
          sudo mkdir /opt/venvs
          sudo chown bonnyci /opt/venvs

          virtualenv /opt/venvs/ansible
          source /opt/venvs/ansible/bin/activate
          pip install ansible

          if test -r requirements.txt; do
            pip install -r requirements.txt
          fi

          if test -r requirements.yml; do
            ansible-galaxy install -r requirements.yml
          fi

- job:
    name: ansible-syntax
    node: 'ubuntu-xenial'

    builders:
      - zuul-git-prep
      - install-ansible
      - shell: |
          source /opt/venvs/ansible/bin/activate
          ansible-playbook -i /dev/null --syntax-check $(find . tests -maxdepth 1 -type f -name \*.yml -not -name .travis.yml)

    publishers:
      - console-log<commit_msg>Fix bash syntax<commit_after>- builder:
    name: install-ansible
    builders:
      - shell: |
          echo Installing ansible into /opt/venvs/ansible
          echo Be sure to source /opt/venvs/ansible/bin/activate in
          echo your builder step to use this virtualenv

          #TODO: bake this into the image
          sudo mkdir /opt/venvs
          sudo chown bonnyci /opt/venvs

          virtualenv /opt/venvs/ansible
          source /opt/venvs/ansible/bin/activate
          pip install ansible

          if test -r requirements.txt; then
            pip install -r requirements.txt
          fi

          if test -r requirements.yml; then
            ansible-galaxy install -r requirements.yml
          fi

- job:
    name: ansible-syntax
    node: 'ubuntu-xenial'

    builders:
      - zuul-git-prep
      - install-ansible
      - shell: |
          source /opt/venvs/ansible/bin/activate
          ansible-playbook -i /dev/null --syntax-check $(find . tests -maxdepth 1 -type f -name \*.yml -not -name .travis.yml)

    publishers:
      - console-log
{'fraction_non_alphanumeric': 0.08372093023255814, 'fraction_numerical': 0.0009302325581395349, 'mean_word_length': 1.6654275092936803, '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': '2251358', 'n_tokens_mistral': 670, 'n_tokens_neox': 630, 'n_words': 189}