<commit_before># Modified from https://gist.github.com/dan-blanchard/7045057
language: python
python:
  - "2.7"
  - "3.3"

# Setup anaconda
before_install:
  - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/anaconda/bin:$PATH
  # Update conda itself
  - conda update --yes conda
  # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
# Install packages
install:
  - conda create --yes -n env_name python=$TRAVIS_PYTHON_VERSION pip numpy matplotlib nose pytest
  - source activate env_name
  - python setup.py install

# Run test
script:
  - nosetests ordination
  - py.test ordination<commit_msg>MAINT: pytest not available in miniconda's py3.<commit_after># Modified from https://gist.github.com/dan-blanchard/7045057
language: python
python:
  - "2.7"
  - "3.3"

# Setup anaconda
before_install:
  - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/anaconda/bin:$PATH
  # Update conda itself
  - conda update --yes conda
  # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
# Install packages
install:
  - conda create --yes -n env_name python=$TRAVIS_PYTHON_VERSION pip numpy matplotlib nose
  - source activate env_name
  - pip install pytest  # not yet available for py3 in anaconda 
  - python setup.py install

# Run test
script:
  - nosetests ordination
  - py.test ordination
{'fraction_non_alphanumeric': 0.10263761467889908, 'fraction_numerical': 0.021788990825688075, 'mean_word_length': 3.174641148325359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1240707', 'n_tokens_mistral': 661, 'n_tokens_neox': 633, 'n_words': 182}