<commit_before>sudo: false
os: linux
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "pypy"
  - "nightly"
matrix:
    include:
        - os: osx
          language: generic
          env:
            - TRAVIS_PYTHON_VERSION=3.5
            - PYTHON=3.5.2

allow_failures:
  - python: "nightly"

# Based on https://pythonhosted.org/CodeChat/.travis.yml.html
before_install: |
  if [ "$TRAVIS_OS_NAME" == "osx" ]; then
    brew update
    brew install openssl readline
    brew outdated pyenv || brew upgrade pyenv
    brew install pyenv-virtualenv
    pyenv install $PYTHON
    export PYENV_VERSION=$PYTHON
    export PATH="/Users/travis/.pyenv/shims:${PATH}"
    python --version
  fi

install:
  - pip install tox
  - "TOX_ENV=${TRAVIS_PYTHON_VERSION/[0-9].[0-9]/py${TRAVIS_PYTHON_VERSION/.}}"
script: tox -e $TOX_ENV
before_cache:
  - rm -rf $HOME/.cache/pip/log
cache:
  directories:
  - "$HOME/.cache/pip"
deploy:
  # test PyPI
  - provider: pypi
    distributions: "sdist bdist_wheel"
    server: https://testpypi.python.org/pypi
    user: gqmelo
    password:
      secure: KoUMEG6rxzSGvPv/53H1epz9ScGt54L+Ylq2bTb8PcXyU6YPI7k6He2RnYdKfQ/OGS/lgoJIEq9DlNTLNy1s5zRR0CBMvyKGkiskjS5RRTDy0+/lr9dyNyvCf8f4chSPFQs6x1QCxelfNzlJNBxq3zYm30Dg45ix+TAft9E0nm3Ah/zLkDDHQt8saFPLcOqoSRhDkjhkYCg6HLW7J7lOrWtg9gFwuSSxxl5k+r44PEOaf9Jwy28SatADtz/RjP/3b9a4QivGH0q9954n5DI5hrIoFfld+8FRIsxEScS1OLyZKQG0RP5g2p1qGJF28XuN/KmT53tE6l0aywkRKf9IsrQGswPdMo7ZdCmP34m9jfy6PnFNVEg+2zLTHlIR9yqpLq/uHaNOf5aaYlwlmN60VybP0n3lSy6wzH8xXPe7tqH4Ox4lkI/D9z1n1yXZFqcpftjltOTcUGcg5WyerWhUMrnAFfEvcaZihg4BCXcMyaYwtB9hXrgisPMPo2fCP3JYcFCTAOpFTZWCkx7+udfqctQNRYsHKAOARQO3qNg4tzfW7NJ5b7+gHl7+AKgW6Y9bFcAjlmDVOeHvYLsY0UJWfwnuO1raBCnVGqU02VgQ7Fiyrgdlc6rEqoh8joo6oXAVE1lonqmYeV1y0nMX+8iVes+fRqqpt534A/Tcn3CZR40=
    on:
      branch: master
      tags: false
      repo: gqmelo/exec-wrappers
      condition: $TRAVIS_PYTHON_VERSION = "2.7"

  # production PyPI
  - provider: pypi
    distributions: "sdist bdist_wheel"
    user: gqmelo
    password:
      secure: <KEY>
    on:
      branch: master
      tags: true
      repo: gqmelo/exec-wrappers
      condition: $TRAVIS_PYTHON_VERSION = "2.7"
<commit_msg>Add python 3.6 to travis matrix<commit_after>sudo: false
os: linux
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
  - "pypy"
  - "nightly"
matrix:
    include:
        - os: osx
          language: generic
          env:
            - TRAVIS_PYTHON_VERSION=3.5
            - PYTHON=3.5.2

allow_failures:
  - python: "nightly"

# Based on https://pythonhosted.org/CodeChat/.travis.yml.html
before_install: |
  if [ "$TRAVIS_OS_NAME" == "osx" ]; then
    brew update
    brew install openssl readline
    brew outdated pyenv || brew upgrade pyenv
    brew install pyenv-virtualenv
    pyenv install $PYTHON
    export PYENV_VERSION=$PYTHON
    export PATH="/Users/travis/.pyenv/shims:${PATH}"
    python --version
  fi

install:
  - pip install tox
  - "TOX_ENV=${TRAVIS_PYTHON_VERSION/[0-9].[0-9]/py${TRAVIS_PYTHON_VERSION/.}}"
script: tox -e $TOX_ENV
before_cache:
  - rm -rf $HOME/.cache/pip/log
cache:
  directories:
  - "$HOME/.cache/pip"
deploy:
  # test PyPI
  - provider: pypi
    distributions: "sdist bdist_wheel"
    server: https://testpypi.python.org/pypi
    user: gqmelo
    password:
      <PASSWORD>: <KEY>
    on:
      branch: master
      tags: false
      repo: gqmelo/exec-wrappers
      condition: $TRAVIS_PYTHON_VERSION = "2.7"

  # production PyPI
  - provider: pypi
    distributions: "sdist bdist_wheel"
    user: gqmelo
    password:
      secure: <KEY>
    on:
      branch: master
      tags: true
      repo: gqmelo/exec-wrappers
      condition: $TRAVIS_PYTHON_VERSION = "2.7"

{'fraction_non_alphanumeric': 0.10755579456843238, 'fraction_numerical': 0.04409787577305727, 'mean_word_length': 3.1425389755011137, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5161009', 'n_tokens_mistral': 1745, 'n_tokens_neox': 1683, 'n_words': 248}