<commit_before>language: python
sudo: false

services:
  - mongodb

matrix:
  include:
    - python: 2.7
    - python: 3.4
    - python: 3.5
  allow_failures:
    - python: 3.5

before_install:
  - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
  - chmod +x miniconda.sh
  - ./miniconda.sh -b -p /home/travis/mc
  - export PATH=/home/travis/mc/bin:$PATH
  - export MDS_HOST=localhost
  - export MDS_DATABASE=test
  - export MDS_TIMEZONE=US/Eastern
  - mkdir -p /home/travis/.config/metadatastore
  - 'echo ''port: 27017'' > /home/travis/.config/metadatastore/connection.yml'

install:
  - export GIT_FULL_HASH=`git rev-parse HEAD`
  - conda config --set always_yes true
  - conda update conda --yes
  - conda config --add channels lightsource2
  - conda create -n testenv pip nose python=$TRAVIS_PYTHON_VERSION "pymongo=2.9" six pyyaml numpy pandas jinja2 mongoengine boltons prettytable humanize
  - source activate testenv
  - pip install coveralls codecov
  - python setup.py install


script:
  - python run_tests.py -v
  # need to fetch the whole repo so that conda-build can correctly determine
  # the version string
  - git fetch --unshallow
  # install deps for building a conda package on travis
  - conda install conda-build jinja2
  - conda build conda-recipe

after_success:
  - coveralls
  - codecov<commit_msg>CI: Install conda-build into root environment<commit_after>language: python
sudo: false

services:
  - mongodb

matrix:
  include:
    - python: 2.7
    - python: 3.4
    - python: 3.5
  allow_failures:
    - python: 3.5

before_install:
  - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
  - chmod +x miniconda.sh
  - ./miniconda.sh -b -p /home/travis/mc
  - export PATH=/home/travis/mc/bin:$PATH
  - export MDS_HOST=localhost
  - export MDS_DATABASE=test
  - export MDS_TIMEZONE=US/Eastern
  - mkdir -p /home/travis/.config/metadatastore
  - 'echo ''port: 27017'' > /home/travis/.config/metadatastore/connection.yml'

install:
  - export GIT_FULL_HASH=`git rev-parse HEAD`
  - conda config --set always_yes true
  - conda update conda --yes
  - conda config --add channels lightsource2
  - conda create -n testenv pip nose python=$TRAVIS_PYTHON_VERSION "pymongo=2.9" six pyyaml numpy pandas jinja2 mongoengine boltons prettytable humanize
  - source activate testenv
  - pip install coveralls codecov
  - python setup.py install


script:
  - python run_tests.py -v
  # need to fetch the whole repo so that conda-build can correctly determine
  # the version string
  - git fetch --unshallow
  # install deps for building a conda package on travis
  - conda install -n root conda-build jinja2
  - conda build conda-recipe

after_success:
  - coveralls
  - codecov
{'fraction_non_alphanumeric': 0.10723598435462842, 'fraction_numerical': 0.02346805736636245, 'mean_word_length': 3.2041095890410958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6013031', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1130, 'n_words': 288}