<commit_before>---

services: docker

if: (type = pull_request) OR (branch = master)

env:
  matrix:
  - distro: 'ubuntu:18.04'
    playbook: test.yml
  - distro: debian:9
    playbook: test.yml
  - distro: debian:10
    playbook: test.yml
  - distro: 'ubuntu:18.04'
    playbook: test_networktopology.yml
  # we don't have the resources now to maintain these distros
  # - distro: fedora:27
  #   playbook: test.yml
  # - distro: fedora:28
  #   playbook: test.yml
  # - distro: centos:7
  #   playbook: test.yml

matrix:
  include:
    - dist: trusty
      env:
        - distro: 'ubuntu:16.04'
          playbook: test.yml

script:
  # Configure test script so we can run extra tests after playbook is run.
  - export container_id=$(date +%s)
  - export cleanup=false
  # run ansible-lint
  - pip install --user ansible
  - ansible-galaxy install -r tests/requirements.yml
  - pip install --user ansible-lint
  - ln -s $TRAVIS_BUILD_DIR ~/.ansible/roles/role_under_test
  - git clone https://github.com/ansible/galaxy-lint-rules.git
  - mv galaxy-lint-rules ~/galaxy
  - ansible-lint tests/test.yml
  - ansible-lint tests/test_networktopology.yml
  # run ci tests
  - ${PWD}/tests/runtests.sh
  - pip install --user "openwisp-utils[qa]>=0.3.1"
  - openwisp-utils-qa-checks --skip-isort --skip-flake8 --skip-checkmigrations

notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/<commit_msg>[qa] Updated python version used in travis<commit_after>---

language: python
services: docker
cache: pip
python: "3.7"

if: (type = pull_request) OR (branch = master)

env:
  matrix:
  - distro: 'ubuntu:18.04'
    playbook: test.yml
  - distro: debian:9
    playbook: test.yml
  - distro: debian:10
    playbook: test.yml
  - distro: 'ubuntu:18.04'
    playbook: test_networktopology.yml
  # we don't have the resources now to maintain these distros
  # - distro: fedora:27
  #   playbook: test.yml
  # - distro: fedora:28
  #   playbook: test.yml
  # - distro: centos:7
  #   playbook: test.yml

matrix:
  include:
    - dist: trusty
      python: "3.5"
      env:
        - distro: 'ubuntu:16.04'
          playbook: test.yml

script:
  # Configure test script so we can run extra tests after playbook is run.
  - export container_id=$(date +%s)
  - export cleanup=false
  # run ansible-lint
  - pip install ansible
  - ansible-galaxy install -r tests/requirements.yml
  - pip install ansible-lint
  - ln -s $TRAVIS_BUILD_DIR ~/.ansible/roles/role_under_test
  - git clone https://github.com/ansible/galaxy-lint-rules.git
  - mv galaxy-lint-rules ~/galaxy
  - ansible-lint tests/test.yml
  - ansible-lint tests/test_networktopology.yml
  # run ci tests
  - ${PWD}/tests/runtests.sh
  - pip install "openwisp-utils[qa]>=0.4.0"
  - openwisp-utils-qa-checks --skip-isort --skip-flake8 --skip-checkmigrations

notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/
{'fraction_non_alphanumeric': 0.12560386473429952, 'fraction_numerical': 0.018633540372670808, 'mean_word_length': 2.886058981233244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '4113004', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1063, 'n_words': 250}