<commit_before>language: python

python: 2.7

os:
  - linux

sudo: required

matrix:
  include:
    - os: linux
      python: 3.4
      env: TOX_ENV=pylint
    - os: linux
      env: TOX_ENV=py27
    - os: linux
      env: TOX_ENV=py34
    - os: linux
      env: TOX_ENV=py35
      python: 3.5
    - os: linux
      env: TOX_ENV=py36
      python: 3.6
    - os: osx
      language: generic
      env:
        - TOX_ENV=py27
        - PYENV_VERSION="2.7.13"
    - os: osx
      language: generic
      env:
        - TOX_ENV=py34
        - PYENV_VERSION="3.4.6"
    - os: osx
      language: generic
      env:
        - TOX_ENV=py35
        - PYENV_VERSION="3.5.3"
    - os: osx
      language: generic
      env:
        - TOX_ENV=py36
        - PYENV_VERSION="3.6.0"
  exclude:
    - python: 2.7 # hack to exclude default no-env travis job

install:
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update
      brew upgrade pyenv
    fi

before_script:
  # Install custom pyton version on OSX
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      if [[ ! -z "$VIRTUAL_ENV" ]]; then deactivate; fi
      eval "$(pyenv init -)"
      pyenv install "$PYENV_VERSION"
      pyenv global "$PYENV_VERSION"
    fi
  - python -m pip install -U pip setuptools tox

script:
  - tox -e $TOX_ENV<commit_msg>Fix pytest issue in OSX travis env<commit_after>language: python

python: 2.7

os:
  - linux

sudo: required

matrix:
  include:
    - os: linux
      python: 3.4
      env: TOX_ENV=pylint
    - os: linux
      env: TOX_ENV=py27
    - os: linux
      env: TOX_ENV=py34
    - os: linux
      env: TOX_ENV=py35
      python: 3.5
    - os: linux
      env: TOX_ENV=py36
      python: 3.6
    - os: osx
      language: generic
      env:
        - TOX_ENV=py27
        - PYENV_VERSION="2.7.13"
    - os: osx
      language: generic
      env:
        - TOX_ENV=py34
        - PYENV_VERSION="3.4.6"
    - os: osx
      language: generic
      env:
        - TOX_ENV=py35
        - PYENV_VERSION="3.5.3"
    - os: osx
      language: generic
      env:
        - TOX_ENV=py36
        - PYENV_VERSION="3.6.0"
  exclude:
    - python: 2.7 # hack to exclude default no-env travis job

install:
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update
      brew upgrade pyenv
    fi

before_script:
  # Install custom pyton version on OSX
  - |
    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      if [[ ! -z "$VIRTUAL_ENV" ]]; then deactivate; fi
      eval "$(pyenv init -)"
      pyenv install "$PYENV_VERSION"
      pyenv global "$PYENV_VERSION"
    fi
  - python -m pip install -U pip setuptools tox pytest

script:
  - tox -e $TOX_ENV
{'fraction_non_alphanumeric': 0.1143717080511663, 'fraction_numerical': 0.029345372460496615, 'mean_word_length': 1.764033264033264, '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': '1714374', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1017, 'n_words': 254}