language: python
cache: pip
sudo: false
install:
  - pip install tox
script: tox
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
      sudo: true
    - python: pypy
      env: TOXENV=pypy
    - python: 3.5
      env: TOXENV=flake8

notifications:
  email:
    - IanLee1521@gmail.com
  irc:
    channels:
      - "irc.freenode.org##python-code-quality"
    use_notice: true
    skip_join: true

dist: xenial
language: python
cache: pip
sudo: false
install:
  - pip install tox
script: tox
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
    - python: pypy2.7-6.0
      env: TOXENV=pypy
    - python: pypy3.5-6.0
      env: TOXENV=pypy3
    - python: 3.5
      env: TOXENV=flake8

notifications:
  email:
    - IanLee1521@gmail.com
  irc:
    channels:
      - "irc.freenode.org##python-code-quality"
    use_notice: true
    skip_join: true

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

Allows using Python version 3.7 without sudo declarations.

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

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