<commit_before>language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"

sudo: false

install: pip install -r requirements_dev.txt

script:
  - flake8
  - pydocstyle pact
  - tox --develop<commit_msg>Setup Travis CI to publish to PyPi<commit_after>language:
  - python
  - ruby

python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"

rvm: "2.2"

sudo: false

install: pip install -r requirements_dev.txt

script:
  - flake8
  - pydocstyle pact
  - tox --develop
  - if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then rvm install 2.2.2; fi
  - if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then rvm use 2.2.2; fi
  - ruby --version
  - bundler --version
  - if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then make package; fi

before_deploy:
  - export RELEASE_PACKAGE=$(ls dist/pact-python-*.tar.gz)
  - echo "deploying $RELEASE_PACKAGE"

deploy:
  provider: pypi
  username: mkbalvanz
  password:
    secure: W<KEY>
  on:
    repo: pact-foundation/pact-python
    python: "2.7"
    tags: true
  server: https://pypi.python.org/pypi
  skip_cleanup: true
{'fraction_non_alphanumeric': 0.1561618062088429, 'fraction_numerical': 0.03574788334901223, 'mean_word_length': 2.619047619047619, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '1110701', 'n_tokens_mistral': 472, 'n_tokens_neox': 449, 'n_words': 103}