<commit_before>sudo: required

# NOTE: It is necessary to explicitly set the distribution to "trusty" due to
# the complex 'matrix: include:' logic below
# More information: https://github.com/travis-ci/travis-ci/issues/5448
dist: trusty

addons:
  postgresql: "9.4"

services:
  - docker
  - postgresql
  - elasticsearch

language: python

env:
  global:
    - RESOLWE_POSTGRESQL_USER=postgres
    - RESOLWE_POSTGRESQL_PORT=5432
    - RESOLWE_ES_PORT=9200
    # XXX: Work-around for the "No module named 'six'" issue with the latest
    # version of setuptools (36.0.0):
    # https://github.com/pypa/setuptools/issues/1042
    - VIRTUALENV_NO_DOWNLOAD=1

# NOTE: Explicit Python versions make Travis job description more informative
matrix:
  include:
    - env: TOX_ENV=py27
      python: "2.7"
    - env: TOX_ENV=py34
      python: "3.4"
    - env: TOX_ENV=py35
      python: "3.5"
    - env: TOX_ENV=docs
      python: "3.5"
    - env: TOX_ENV=linters
      python: "3.5"
    - env: TOX_ENV=packaging
      python: "3.5"

before_install:
  # Manually install Elastic Search.
  - curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.3/elasticsearch-2.4.3.deb
  - sudo dpkg -i --force-confnew elasticsearch-2.4.3.deb
  - sudo service elasticsearch restart
<commit_msg>Revert "Work-around for an issue with the latest setuptools (36.0.0)"<commit_after>sudo: required

# NOTE: It is necessary to explicitly set the distribution to "trusty" due to
# the complex 'matrix: include:' logic below
# More information: https://github.com/travis-ci/travis-ci/issues/5448
dist: trusty

addons:
  postgresql: "9.4"

services:
  - docker
  - postgresql
  - elasticsearch

language: python

env:
  global:
    - RESOLWE_POSTGRESQL_USER=postgres
    - RESOLWE_POSTGRESQL_PORT=5432
    - RESOLWE_ES_PORT=9200

# NOTE: Explicit Python versions make Travis job description more informative
matrix:
  include:
    - env: TOX_ENV=py27
      python: "2.7"
    - env: TOX_ENV=py34
      python: "3.4"
    - env: TOX_ENV=py35
      python: "3.5"
    - env: TOX_ENV=docs
      python: "3.5"
    - env: TOX_ENV=linters
      python: "3.5"
    - env: TOX_ENV=packaging
      python: "3.5"

before_install:
  # Manually install Elastic Search.
  - curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.3/elasticsearch-2.4.3.deb
  - sudo dpkg -i --force-confnew elasticsearch-2.4.3.deb
  - sudo service elasticsearch restart

{'fraction_non_alphanumeric': 0.1117296222664016, 'fraction_numerical': 0.03777335984095427, 'mean_word_length': 3.1518151815181517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '6287122', 'n_tokens_mistral': 947, 'n_tokens_neox': 911, 'n_words': 213}