sudo: false
language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27
    - python: 3.4
      env: TOXENV=py34
    - python: 3.5
      env: TOXENV=py35
    - python: 3.6
      env: TOXENV=py36
    - python: 3.7
      env: TOXENV=py37
      dist: xenial  # https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
      sudo: true
    - env: TOXENV=docs

install:
   - pip install tox

script:
   - tox

deploy:
   - provider: pypi
     user: ikalnytskyi
     password: $PYPI_PASSWORD
     on:
        tags: true
        distributions: sdist

notifications:
   email: false

dist: xenial
language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27
    - python: 3.4
      env: TOXENV=py34
    - python: 3.5
      env: TOXENV=py35
    - python: 3.6
      env: TOXENV=py36
    - python: 3.7
      env: TOXENV=py37
    - env: TOXENV=docs

install:
   - pip install tox

script:
   - tox

deploy:
   - provider: pypi
     user: ikalnytskyi
     password: $PYPI_PASSWORD
     on:
        tags: true
        distributions: sdist

notifications:
   email: false

Migrate Travis CI to VM based infrastructure
Migrate Travis CI to VM based infrastructure

Travis CI has stopped supporting container based infrastructure and now
runs pretty much everything in VM based infrastructure [1]. That said,
in order to avoid confusion let's remove obsolete "sudo" key from Travis
CI as well as use xenial image to run tests as the more realistic to the
modern world choice.

[1] https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
