language: python
sudo: false
dist: trusty
os: linux

matrix:
  fast_finish: false
  include:
    - python: 2.7
    - python: 3.4
    - python: 3.5
    - python: 3.6
    - python: 3.7
      dist: xenial
      sudo: required
    - python: pypy
    - python: pypy3
    - env: ENV=coverage
      python: 3.7
      before_install: TOX_ENV=coverage-travis

install:
  - pip install "tox==3.13.2"
  - TOX_ENV=py$TRAVIS_PYTHON_VERSION

script:
  - tox -e $TOX_ENV

cache:
  apt: true
  directories:
    - $HOME/.cache/pip # pip cache
    - .tox

notifications:
  email:
    - tomaz+travisci@tomaz.me

language: python
sudo: false
dist: xenial
os: linux

matrix:
  fast_finish: false
  include:
    - python: 2.7
    - python: 3.4
    - python: 3.5
    - python: 3.6
    - python: 3.7
      dist: xenial
      sudo: required
    - python: pypy
    - python: pypy3
    - env: ENV=coverage
      python: 3.7
      before_install: TOX_ENV=coverage-travis

install:
  - pip install "tox==3.13.2"
  - TOX_ENV=py$TRAVIS_PYTHON_VERSION

script:
  - tox -e $TOX_ENV

cache:
  apt: true
  directories:
    - $HOME/.cache/pip # pip cache
    - .tox

notifications:
  email:
    - tomaz+travisci@tomaz.me

Use Xenial for all the Python versions.
Use Xenial for all the Python versions.
