<commit_before>#!/bin/bash
#file   : travis.sh
#author : ning
#date   : 2014-05-10 16:54:43

#install deps if we are in travis
if [ -n "$TRAVIS" ]; then
    sudo pip install redis
    sudo pip install nose

    sudo pip install git+https://github.com/andymccurdy/redis-py.git@2.9.0
    sudo pip install git+https://github.com/idning/python-memcached.git#egg=memcache
fi 

#build twemproxy
CFLAGS="-ggdb3 -O0" autoreconf -fvi && ./configure --enable-debug=log && make 

cp  src/nutcracker  tests/_binaries/
cp `which redis-server` tests/_binaries/
cp `which redis-cli` tests/_binaries/
cp `which memcached` tests/_binaries/

#run test
cd tests/ && nosetests --nologcapture -x 
<commit_msg>add -v for nosetests<commit_after>#!/bin/bash
#file   : travis.sh
#author : ning
#date   : 2014-05-10 16:54:43

#install deps if we are in travis
if [ -n "$TRAVIS" ]; then
    sudo pip install redis
    sudo pip install nose

    sudo pip install git+https://github.com/andymccurdy/redis-py.git@2.9.0
    sudo pip install git+https://github.com/idning/python-memcached.git#egg=memcache
fi 

#build twemproxy
CFLAGS="-ggdb3 -O0" autoreconf -fvi && ./configure --enable-debug=log && make 

cp  src/nutcracker  tests/_binaries/
cp `which redis-server` tests/_binaries/
cp `which redis-cli` tests/_binaries/
cp `which memcached` tests/_binaries/

#run test
cd tests/ && nosetests --nologcapture -x -v

{'fraction_non_alphanumeric': 0.13140794223826716, 'fraction_numerical': 0.027436823104693142, 'mean_word_length': 3.5294117647058822, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5118387', 'n_tokens_mistral': 550, 'n_tokens_neox': 503, 'n_words': 138}