<commit_before>language: python

python:
  - "3.5"

cache:
  pip: true

install:
  - pip install git+https://github.com/Rostlab/nalaf.git@feature/Experimental
  - python -m nalaf.download_corpora
  - pip install codecov
  - wget http://download.joachims.org/svm_light/current/svm_light.tar.gz -O /tmp/svm_light.tar.gz
  - mkdir svm_light && cd svm_light
  - tar -xvf /tmp/svm_light.tar.gz
  - make
  - export PATH=$PATH:$PWD
  - cd $TRAVIS_BUILD_DIR
  - pip install .

script:
  - py.test -v

after_success:
  - codecov

branches:
  only:
    - master
    - develop
<commit_msg>improve travis build #travis👷 (may contain errors, #experimental) - run py.test with coverage (codecov) -- see: https://github.com/codecov/example-python#pytest - cache directories<commit_after>language: python

python:
  - "3.5"

branches:
  only:
    - master
    - develop

cache:
  pip: true
  directories:
    - $TRAVIS_BUILD_DIR/svm_light

before_install:
  - pip install git+https://github.com/Rostlab/nalaf.git@feature/Experimental
  - python -m nalaf.download_corpora
  - pip install codecov
  - pip install pytest-cov
  - wget http://download.joachims.org/svm_light/current/svm_light.tar.gz -O /tmp/svm_light.tar.gz
  - mkdir svm_light && cd svm_light
  - tar -xvf /tmp/svm_light.tar.gz
  - make
  - export PATH=$PATH:$PWD
  - cd $TRAVIS_BUILD_DIR

install:
  - pip install .

script:
  - py.test -v --cov=./

after_success:
  - codecov

{'fraction_non_alphanumeric': 0.12491228070175439, 'fraction_numerical': 0.002807017543859649, 'mean_word_length': 2.9501385041551247, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5845529', 'n_tokens_mistral': 565, 'n_tokens_neox': 554, 'n_words': 111}