<commit_before>dist: xenial
language: python
python:
  - 3.7
os:
  - linux
services:
  - xvfb

branches:
  except:
    - gh-pages

cache:
  npm: true
  bundler: true
  pip: true
  apt: true
  directories:
  - node_modules
  - .cache/pip

# the python stuff is for
# https://github.com/travis-ci/travis-ci/issues/8920
# https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
before_install:
  - sudo lshw -short
  - python3 -c 'import os,sys; os.set_blocking(sys.stdout.fileno(), True)'
  - python3 -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); print("blocking:", flags&os.O_NONBLOCK == 0);'
  - curl -sL https://github.com/retorquere/zotero-deb/releases/download/apt-get/install.sh | sudo bash
  - travis_retry sudo apt-get update
  - travis_retry sudo apt-get install $CLIENT
  - travis_retry sudo ./util/install-beta $CLIENT
script:
  - ./util/build-assets fetch || travis_terminate 1
  - ./test/behave --format json.pretty --outfile behave.json --format travis --define balance=$JOB
  - touch behave.json
  - curl -T behave.json -u "$PCLOUD" https://webdav.pcloud.com/travis/$CLIENT=$TRAVIS_BRANCH=$TRAVIS_JOB_NUMBER=$TRAVIS_EVENT_TYPE.json

after_failure:
  - ./util/build-assets pop
  - export fileio=$(curl -F "file=@$HOME/.BBTZ5TEST.log" https://file.io/?expires=2) && echo $fileio
<commit_msg>clean up balancer output<commit_after>dist: xenial
language: python
python:
  - 3.7
os:
  - linux
services:
  - xvfb

branches:
  except:
    - gh-pages

cache:
  npm: true
  bundler: true
  pip: true
  apt: true
  directories:
  - node_modules
  - .cache/pip

# the python stuff is for
# https://github.com/travis-ci/travis-ci/issues/8920
# https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
before_install:
  - sudo lshw -short
  - python3 -c 'import os,sys; os.set_blocking(sys.stdout.fileno(), True)'
  - python3 -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); print("blocking:", flags&os.O_NONBLOCK == 0);'
  - curl -sL https://github.com/retorquere/zotero-deb/releases/download/apt-get/install.sh | sudo bash
  - travis_retry sudo apt-get update
  - travis_retry sudo apt-get install $CLIENT
  - travis_retry sudo ./util/install-beta $CLIENT
script:
  - ./util/build-assets fetch || travis_terminate 1
  - ./test/behave --format json.pretty --outfile behave.json --format travis --define balance=$JOB --no-skipped
  - touch behave.json
  - curl -T behave.json -u "$PCLOUD" https://webdav.pcloud.com/travis/$CLIENT=$TRAVIS_BRANCH=$TRAVIS_JOB_NUMBER=$TRAVIS_EVENT_TYPE.json

after_failure:
  - ./util/build-assets pop
  - export fileio=$(curl -F "file=@$HOME/.BBTZ5TEST.log" https://file.io/?expires=2) && echo $fileio

{'fraction_non_alphanumeric': 0.14753495217071377, 'fraction_numerical': 0.01839587932303164, 'mean_word_length': 3.5316666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '3565037', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1047, 'n_words': 208}