<commit_before><commit_msg>GIT: add travis support for master branch<commit_after>language: python
python:
  - 2.7
branches:
  only:
    - master
    - development
 
# Setup anaconda in a new virtual environment
before_install:
  - wget http://repo.continuum.io/archive/Anaconda-2.1.0-Linux-x86_64.sh -O anaconda.sh
  - chmod +x anaconda.sh
  - ./anaconda.sh -b
  - export PATH=/home/travis/anaconda/bin:$PATH
  - conda update --yes conda
  - conda update --yes anaconda
#  - conda create --yes -n anacondaenv python=$TRAVIS_PYTHON_VERSION
#  - source activate anacondaenv
  - cd host
# 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 pybar with needed packages
install:
  - pip install https://github.com/walac/pyusb/archive/master.zip
  - pip install https://silab-redmine.physik.uni-bonn.de/attachments/download/695/pySiLibUSB-2.0.2.tar.gz
  - pip install https://silab-redmine.physik.uni-bonn.de/attachments/download/719/Basil-2.0.2.tar.gz
  - pip install progressbar-latest
  - python setup.py develop
 
# Run test
script:
- nosetests tests/test_analysis.py --logging-level=INFO
{'fraction_non_alphanumeric': 0.11331679073614558, 'fraction_numerical': 0.017369727047146403, 'mean_word_length': 3.245614035087719, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '1004565', 'n_tokens_mistral': 448, 'n_tokens_neox': 432, 'n_words': 106}