language: python
addons:
  apt:
    update: true
sudo: false
cache: pip

python:
  - 3.5
  - 3.6
  - 3.7

matrix:
  include:
    - python: 2.7
      env: SELFTEST_OPTIONS="--coverage"

script:
  - make docs extensions
  - BRZ_PLUGIN_PATH=-site:-user python -Werror -Wignore::ImportWarning -Wignore::PendingDeprecationWarning -Wignore::DeprecationWarning -Wignore::ResourceWarning ./brz selftest --parallel=fork $SELFTEST_OPTIONS

install:
  - sudo apt install python-all-dev python3-all-dev subunit
  - travis_retry pip install -U setuptools
  - travis_retry pip install -U pip coverage codecov flake8 testtools paramiko fastimport configobj cython testscenarios six docutils python-subunit dulwich $TEST_REQUIRE sphinx sphinx_epytext

after_success:
  - codecov
