<commit_before># vim: sw=2 ts=2 sts=2 expandtab

sudo: required
language: python
services:
  - docker

cache: pip

matrix:
  include:
    - env:
        - DB=mariadb:5.5
      python: "3.5"
    - env:
        - DB=mariadb:10.0
      python: "3.6"
    - env:
        - DB=mariadb:10.1
      python: "pypy"
    - env:
        - DB=mariadb:10.2
      python: "2.7"
    - env:
        - DB=mariadb:10.3
      python: "3.7-dev"
    - env:
        - DB=mysql:5.5
      python: "3.5"
    - env:
        - DB=mysql:5.6
      python: "3.6"
    - env:
        - DB=mysql:5.7
      python: "3.4"
    - env:
        - DB=mysql:8.0
        - TEST_AUTH=yes
      python: "3.7-dev"

# different py version from 5.6 and 5.7 as cache seems to be based on py version
# http://dev.mysql.com/downloads/mysql/5.7.html has latest development release version
# really only need libaio1 for DB builds however libaio-dev is whitelisted for container builds and liaio1 isn't
install:
  - pip install -U coveralls unittest2 coverage cryptography pytest pytest-cov

before_script:
  - ./.travis/initializedb.sh
  - python -VV
  - rm -f ~/.my.cnf # set in .travis.initialize.db.sh for the above commands - we should be using database.json however
  - export COVERALLS_PARALLEL=true

script:
  - coverage run ./runtests.py
  - if [ "${TEST_AUTH}" = "yes" ];
    then pytest -v --cov-config .coveragerc tests;
    fi
  - if [ ! -z "${DB}" ];
    then docker logs mysqld;
    fi

after_success:
  - coveralls
<commit_msg>travis: Run auth test with Python 2.7 (#702)<commit_after># vim: sw=2 ts=2 sts=2 expandtab

sudo: required
language: python
services:
  - docker

cache: pip

matrix:
  include:
    - env:
        - DB=mariadb:5.5
      python: "3.5"
    - env:
        - DB=mariadb:10.0
      python: "3.6"
    - env:
        - DB=mariadb:10.1
      python: "pypy"
    - env:
        - DB=mariadb:10.2
      python: "2.7"
    - env:
        - DB=mariadb:10.3
      python: "3.7-dev"
    - env:
        - DB=mysql:5.5
      python: "3.5"
    - env:
        - DB=mysql:5.6
      python: "3.6"
    - env:
        - DB=mysql:5.7
      python: "3.4"
    - env:
        - DB=mysql:8.0
        - TEST_AUTH=yes
      python: "3.7-dev"
    - env:
        - DB=mysql:8.0
        - TEST_AUTH=yes
      python: "2.7"

# different py version from 5.6 and 5.7 as cache seems to be based on py version
# http://dev.mysql.com/downloads/mysql/5.7.html has latest development release version
# really only need libaio1 for DB builds however libaio-dev is whitelisted for container builds and liaio1 isn't
install:
  - pip install -U coveralls unittest2 coverage cryptography pytest pytest-cov

before_script:
  - ./.travis/initializedb.sh
  - python -VV
  - rm -f ~/.my.cnf # set in .travis.initialize.db.sh for the above commands - we should be using database.json however
  - export COVERALLS_PARALLEL=true

script:
  - coverage run ./runtests.py
  - if [ "${TEST_AUTH}" = "yes" ];
    then pytest -v --cov-config .coveragerc tests;
    fi
  - if [ ! -z "${DB}" ];
    then docker logs mysqld;
    fi

after_success:
  - coveralls

{'fraction_non_alphanumeric': 0.1286038224813735, 'fraction_numerical': 0.03530936183997409, 'mean_word_length': 2.0038910505836576, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5949149', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1177, 'n_words': 308}