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

sudo: required

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

before_install:
  - redis-server redis.conf &
  - export THRIFT_CACHED=0
  - if [ -d '$HOME/thrift/thrift-0.9.2' ]; then export THRIFT_CACHED=1; fi
  - ./install_travis.sh

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
#  - KB_REDIS_HOST="";        KB_NOSE_CFG=nose-ci.cfg

after_success:
  - codecov -X gcov<commit_msg>run thrift install in another shell environment<commit_after>language: python
python:
  - "2.7"

sudo: required

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

before_install:
  - redis-server redis.conf &
  - export THRIFT_CACHED=0
  - if [ -d '$HOME/thrift/thrift-0.9.2' ]; then export THRIFT_CACHED=1; fi
  - bash install_travis.sh
  - exit

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
#  - KB_REDIS_HOST="";        KB_NOSE_CFG=nose-ci.cfg

after_success:
  - codecov -X gcov
{'fraction_non_alphanumeric': 0.1266829865361077, 'fraction_numerical': 0.008567931456548347, 'mean_word_length': 3.268929503916449, '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': '5057014', 'n_tokens_mistral': 681, 'n_tokens_neox': 661, 'n_words': 119}