sudo: false
language: python
cache: pip
matrix:
  include:
  - env: TOXENV=isort-check
  - env: TOXENV=lint
  - 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
    sudo: required
  - python: pypy
    env: TOXENV=pypy
install:
  - pip install tox
script:
  - tox

dist: xenial
sudo: false
language: python
cache: pip
matrix:
  include:
  - env: TOXENV=isort-check
  - env: TOXENV=lint
  - 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
  - python: pypy
    env: TOXENV=pypy
    dist: trusty
install:
  - pip install tox
script:
  - tox

Use 'dist: xenial' in Travis to simplify configuration
Use 'dist: xenial' in Travis to simplify configuration

Allows using recent Python versions without sudo declarations.

Travis officially added support for Xenial on 2018-11-08.

https://blog.travis-ci.com/2018-11-08-xenial-release
