<commit_before># After changing this file, check it on:
#   http://lint.travis-ci.org/
#
language: python

python:
  # We don't actually use the Travis Python, but this keeps it organized.
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "pypy"

matrix:
  fast_finish: true

  include:
    - python: "3.4"
      env: FROM_SOURCE=true

  allow_failures:
    # 3.4 and pypy Wheels are not yet available.
    - python: "pypy"
    - env: FROM_SOURCE=true

env:
  matrix:
    - OPTIONAL_DEPS=true
    - OPTIONAL_DEPS=false

before_install:
  ### Prepare the system to install prerequisites or dependencies
  - uname -a
  - printenv
  - sudo apt-get update -qq

  # We do this conditionally because it saves us some downloading if the
  # version is the same.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
    fi
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

install:
  ### Install any prerequisites or dependencies necessary to run the build.
  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pip numpy
  - if [ "${OPTIONAL_DEPS}" == "true" ]; then conda install -n test-environment Cython; fi

  # Skipping pydot (not 3.x compatible)
  # Skipping gdal (errors during pip installs)

  - source activate test-environment

before_script:
  ### Use this to prepare your build for testing
  - conda install -n test-environment nose coverage
  - pip install coveralls
  - conda install scipy cvxopt

script:
  - printenv PWD
  - pip install .
  - pip install -r requirements_optional.txt

  - export DIT_INSTALL=`pip show dit | grep Location | awk '{print $2"/dit"}'`<commit_msg>conda has an old build of coverage for py3.3<commit_after># After changing this file, check it on:
#   http://lint.travis-ci.org/
#
language: python

python:
  # We don't actually use the Travis Python, but this keeps it organized.
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "pypy"

matrix:
  fast_finish: true

  include:
    - python: "3.4"
      env: FROM_SOURCE=true

  allow_failures:
    # 3.4 and pypy Wheels are not yet available.
    - python: "pypy"
    - env: FROM_SOURCE=true

env:
  matrix:
    - OPTIONAL_DEPS=true
    - OPTIONAL_DEPS=false

before_install:
  ### Prepare the system to install prerequisites or dependencies
  - uname -a
  - printenv
  - sudo apt-get update -qq

  # We do this conditionally because it saves us some downloading if the
  # version is the same.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
    fi
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

install:
  ### Install any prerequisites or dependencies necessary to run the build.
  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pip numpy
  - if [ "${OPTIONAL_DEPS}" == "true" ]; then conda install -n test-environment Cython; fi

  # Skipping pydot (not 3.x compatible)
  # Skipping gdal (errors during pip installs)

  - source activate test-environment

before_script:
  ### Use this to prepare your build for testing
  - conda install -n test-environment nose
  - pip install --upgrade coverage coveralls
  - conda install scipy cvxopt

script:
  - printenv PWD
  - pip install .
  - pip install -r requirements_optional.txt

  - export DIT_INSTALL=`pip show dit | grep Location | awk '{print $2"/dit"}'`
{'fraction_non_alphanumeric': 0.10725786475105276, 'fraction_numerical': 0.013376269507059698, 'mean_word_length': 2.9472140762463344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4837435', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1392, 'n_words': 436}