<commit_before># WARNING:
# Do not use this file as a template for you repository TravisCI configuration
# Instead use the files under the "/sample_files" directory for that purpose.
language: python
sudo: false
cache:
  apt: true
  directories:
    - $HOME/.cache/pip

addons:
  apt:
    packages:
      - expect-dev  # provides unbuffer utility
      - python-lxml  # because pip installation is slow

matrix:
  include:
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        INSTANCE_ALIVE="1" INCLUDE="broken_module" SERVER_EXPECTED_ERRORS="2"  # test errors are detected
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        EXCLUDE="broken_module,broken_lint,broken_no_access_rule" OPTIONS="--log-level=debug" INSTALL_OPTIONS="--log-level=info" RUN_COMMAND_MQT_CREATE_FOLDER='mkdir /tmp/tests'
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module" UNIT_TEST="1"
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module" ODOO_REPO="OCA/OCB" MQT_TEMPLATE_DB='mqt_odoo_template_core' MQT_TEST_DB='mqt_odoo_core'
    - python: 2.7
      env:
        VERSION="" TESTS="0" LINT_CHECK="1"
        PYLINT_EXPECTED_ERRORS="35"
    - python: 3.5
      env:
        VERSION="11.0" ODOO_REPO="OCA/OCB" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module"

install:
  - cp -r ../maintainer-quality-tools/ $HOME
  - cp -r tests/test_repo/* ./
  - export PATH=$HOME/maintainer-quality-tools/travis:$PATH
   # Force install lint requirements in all cases of MQT for self_test script.
  - pip install codecov coveralls
  - LINT_CHECK="1" travis_install_nightly 8.0 # only used if VERSION not set in env<commit_msg>[REF] .travis.yml: Use python 3.7<commit_after># WARNING:
# Do not use this file as a template for you repository TravisCI configuration
# Instead use the files under the "/sample_files" directory for that purpose.
language: python
sudo: false
cache:
  apt: true
  directories:
    - $HOME/.cache/pip

addons:
  apt:
    packages:
      - expect-dev  # provides unbuffer utility
      - python-lxml  # because pip installation is slow

matrix:
  include:
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        INSTANCE_ALIVE="1" INCLUDE="broken_module" SERVER_EXPECTED_ERRORS="2"  # test errors are detected
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        EXCLUDE="broken_module,broken_lint,broken_no_access_rule" OPTIONS="--log-level=debug" INSTALL_OPTIONS="--log-level=info" RUN_COMMAND_MQT_CREATE_FOLDER='mkdir /tmp/tests'
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module" UNIT_TEST="1"
    - python: 2.7
      env:
        VERSION="9.0" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module" ODOO_REPO="OCA/OCB" MQT_TEMPLATE_DB='mqt_odoo_template_core' MQT_TEST_DB='mqt_odoo_core'
    - python: 2.7
      env:
        VERSION="" TESTS="0" LINT_CHECK="1"
        PYLINT_EXPECTED_ERRORS="35"
    - python: 3.5
      env:
        VERSION="11.0" ODOO_REPO="OCA/OCB" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module"
    - python: 3.7-dev
      env:
        VERSION="11.0" ODOO_REPO="OCA/OCB" TESTS="1" LINT_CHECK="0"
        INCLUDE="test_module,second_module"

install:
  - cp -r ../maintainer-quality-tools/ $HOME
  - cp -r tests/test_repo/* ./
  - export PATH=$HOME/maintainer-quality-tools/travis:$PATH
   # Force install lint requirements in all cases of MQT for self_test script.
  - pip install codecov coveralls
  - LINT_CHECK="1" travis_install_nightly 8.0 # only used if VERSION not set in env
{'fraction_non_alphanumeric': 0.12205454064072015, 'fraction_numerical': 0.025152237225311094, 'mean_word_length': 3.1792035398230087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3333582', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1351, 'n_words': 299}