<commit_before>language: python
python:
  - 3.4
  - 3.5
cache: pip

env:
  # Run unit test suite for all Python versions
  - CI_STEP=unit

matrix:
  include:

    # Run integration test suite with one Python version only, as it will use
    # Python version provided by Alpine Linux anyway (see
    # tests/integration/Dockerfile)
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.10
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.9
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.8
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.7
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.6
    # Docker HUB does not support 1.5 clients and older
    # https://forums.docker.com/t/docker-pull-deprecation-for-for-v1-5-clients

    # PEP8 checking
    - python: 3.5
      env: CI_STEP=style

dist: trusty
sudo: required
services:
  - docker
install:
  - pip install -r requirements.txt -r tests/requirements.txt

script:
  - ./ci-step.sh ${CI_STEP}

after_success:
  - pip install coveralls codacy-coverage
  - coveralls
  - test -n "$CODACY_PROJECT_TOKEN" -a
         "$CI_STEP" = "unit" -a
         "$TRAVIS_PYTHON_VERSION" = "3.5" &&
    python-codacy-coverage -r coverage.xml -c $TRAVIS_COMMIT

before_deploy:
  - git fetch --unshallow

deploy:
  # test pypi
  - provider: pypi
    distributions: sdist bdist_wheel
    server: https://testpypi.python.org/pypi
    on:
      python: 3.5
      condition: $CI_STEP = "unit"
      branch: master
      tags: false
    user: esbenhaabendal
    password:
      secure: "<PASSWORD> <KEY>

  # production pypi<commit_msg>CI: Do all pip installs at once<commit_after>language: python
python:
  - 3.4
  - 3.5
cache: pip

env:
  # Run unit test suite for all Python versions
  - CI_STEP=unit

matrix:
  include:

    # Run integration test suite with one Python version only, as it will use
    # Python version provided by Alpine Linux anyway (see
    # tests/integration/Dockerfile)
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.10
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.9
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.8
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.7
    - python: 3.5
      env: CI_STEP=integration DOCKER_VERSION=1.6
    # Docker HUB does not support 1.5 clients and older
    # https://forums.docker.com/t/docker-pull-deprecation-for-for-v1-5-clients

    # PEP8 checking
    - python: 3.5
      env: CI_STEP=style

dist: trusty
sudo: required
services:
  - docker
install:
  - pip install -r requirements.txt -r tests/requirements.txt
      coveralls codacy-coverage

script:
  - ./ci-step.sh ${CI_STEP}

after_success:
  - coveralls
  - test -n "$CODACY_PROJECT_TOKEN" -a
         "$CI_STEP" = "unit" -a
         "$TRAVIS_PYTHON_VERSION" = "3.5" &&
    python-codacy-coverage -r coverage.xml -c $TRAVIS_COMMIT

before_deploy:
  - git fetch --unshallow

deploy:
  # test pypi
  - provider: pypi
    distributions: sdist bdist_wheel
    server: https://testpypi.python.org/pypi
    on:
      python: 3.5
      condition: $CI_STEP = "unit"
      branch: master
      tags: false
    user: esbenhaabendal
    password:
      secure: "<KEY>

  # production pypi
{'fraction_non_alphanumeric': 0.10209662716499544, 'fraction_numerical': 0.02187784867821331, 'mean_word_length': 2.649667405764967, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '4061074', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1189, 'n_words': 302}