<commit_before>dist: bionic
language: python
python:
  # - 2.7
  - 3.6
  - 3.7
# env:
#   - DJANGO=1.11.13
os: linux
sudo: required

before_install:
  - sudo apt-get update -y
  - sudo apt-get upgrade -y
  - sudo apt-get install -y tidy
  - sudo apt-get install -y swig
  - sudo apt-get install -y graphviz
  - sudo apt-get install -y libreoffice python3-uno
  - libreoffice '--accept=socket,host=localhost,port=8100;urp;' &

install:
  - pip install -U setuptools
  - pip install -U pip
  - pip install coveralls
  - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then pip install -r requirements.txt; else pip install -r requirements.python3.txt;  fi
#   - test -e "requirements.$TRAVIS_BRANCH.txt" && ( pip install -r "requirements.$TRAVIS_BRANCH.txt" ) || ( pip install -r requirements.txt )
  - pip install -e .
  - pip freeze

script:
  - export LINO_CACHE_ROOT=$TRAVIS_BUILD_DIR/lino_cache
  - mkdir $LINO_CACHE_ROOT
  - inv install
  - inv prep
  - inv cov --no-html
#  - inv prep test
#  - python setup.py test

# if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then inv cov; fi;

after_script:
  - coveralls<commit_msg>removed coveralls and inv cov<commit_after>dist: bionic
language: python
python:
  # - 2.7
  - 3.6
  - 3.7
# env:
#   - DJANGO=1.11.13
os: linux
sudo: required

before_install:
  - sudo apt-get update -y
  - sudo apt-get upgrade -y
  - sudo apt-get install -y tidy
  - sudo apt-get install -y swig
  - sudo apt-get install -y graphviz
  - sudo apt-get install -y libreoffice python3-uno
  - libreoffice '--accept=socket,host=localhost,port=8100;urp;' &

install:
  - pip install -U setuptools
  - pip install -U pip
  # - pip install coveralls
  - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then pip install -r requirements.txt; else pip install -r requirements.python3.txt;  fi
#   - test -e "requirements.$TRAVIS_BRANCH.txt" && ( pip install -r "requirements.$TRAVIS_BRANCH.txt" ) || ( pip install -r requirements.txt )
  - pip install -e .
  - pip freeze

script:
  - export LINO_CACHE_ROOT=$TRAVIS_BUILD_DIR/lino_cache
  - mkdir $LINO_CACHE_ROOT
  - inv install
  - inv prep test
  # - inv cov --no-html
#  - inv prep test
#  - python setup.py test

# if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then inv cov; fi;

# after_script:
#   - coveralls
{'fraction_non_alphanumeric': 0.12416851441241686, 'fraction_numerical': 0.017738359201773836, 'mean_word_length': 2.8762886597938144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5031956', 'n_tokens_mistral': 885, 'n_tokens_neox': 845, 'n_words': 234}