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

python:
  - 3.5
  - 3.6

matrix:
  include:
    - python: 3.7
      dist: xenial
    - python: 3.8
      dist: xenial

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

install:
  - sudo apt install python-all-dev python3-all-dev subunit quilt
  - 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 $TEST_REQUIRE sphinx sphinx_epytext launchpadlib patiencediff git+https://github.com/dulwich/dulwich

after_success:
  - codecov
