<commit_before>language: python
python:
  - "2.7"

sudo: required

cache:
  directories:
    - $HOME/.cache/pip
    - $HOME/thrift

before_install:
  - redis-server redis.conf &
  - sudo apt-get update -qq
  - >
    sudo apt-get install -qq libboost-dev libboost-test-dev
    libboost-program-options-dev libevent-dev automake libtool
    flex bison pkg-config g++ libssl-dev
    libbit-vector-perl libclass-accessor-class-perl
  - mkdir $HOME/thrift && cd $HOME/thrift
  - wget http://www.us.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
  - tar xfz thrift-0.9.2.tar.gz
  - cd thrift-0.9.2
  - ./configure --without-ruby
  - sudo make install
  - cd -

install:
  - python setup.py install
#  - echo "lib/doekbase/data_api/interactive" > exclude-tests.txt

script:
  - coverage run `which nosetests` -c nose.cfg -c $KB_NOSE_CFG --debug dataio,dataop
  - coverage report

env:
  - KB_REDIS_HOST=localhost; KB_NOSE_CFG=nose-local.cfg
  - KB_REDIS_HOST="";        KB_NOSE_CFG=nose-local.cfg
#  - KB_REDIS_HOST=localhost; KB_NOSE_CFG=nose-ci.cfg<commit_msg>drop making thrift directory for caching<commit_after>language: python
python:
  - "2.7"

sudo: required

# cache:
#  directories:
#    - $HOME/.cache/pip

before_install:
  - redis-server redis.conf &
  - sudo apt-get update -qq
  - >
    sudo apt-get install -qq libboost-dev libboost-test-dev
    libboost-program-options-dev libevent-dev automake libtool
    flex bison pkg-config g++ libssl-dev
    libbit-vector-perl libclass-accessor-class-perl
  - wget http://www.us.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
  - tar xfz thrift-0.9.2.tar.gz
  - cd thrift-0.9.2
  - ./configure --without-ruby
  - sudo make install
  - cd ..

install:
  - python setup.py install
#  - echo "lib/doekbase/data_api/interactive" > exclude-tests.txt

script:
  - coverage run `which nosetests` -c nose.cfg -c $KB_NOSE_CFG --debug dataio,dataop
  - coverage report

env:
  - KB_REDIS_HOST=localhost; KB_NOSE_CFG=nose-local.cfg
  - KB_REDIS_HOST="";        KB_NOSE_CFG=nose-local.cfg
#  - KB_REDIS_HOST=localhost; KB_NOSE_CFG=nose-ci.cfg
{'fraction_non_alphanumeric': 0.13045563549160671, 'fraction_numerical': 0.01342925659472422, 'mean_word_length': 2.928436911487759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4374819', 'n_tokens_mistral': 845, 'n_tokens_neox': 812, 'n_words': 155}