language: python
python:
  - 2.7
  - 3.3
  - 3.4
  - 3.5
  - 3.6
sudo: false
install:
  - pip install tox coveralls
script:
  - tox -e py${TRAVIS_PYTHON_VERSION//./},flake8,pydocstyle
  - coveralls
matrix:
  fast_finish: true

language: python
install:
  - pip install tox coveralls
script:
  - tox -e py${TRAVIS_PYTHON_VERSION//./},flake8,pydocstyle
  - coveralls
matrix:
  fast_finish: true
  include:
    - python: 2.7
      dist: trusty
      sudo: false
    - python: 3.3
      dist: trusty
      sudo: false
    - python: 3.4
      dist: trusty
      sudo: false
    - python: 3.5
      dist: trusty
      sudo: false
    - python: 3.6
      dist: trusty
      sudo: false
    - python: 3.7
      dist: xenial
      sudo: true

Add Python 3.7 to the test matrix
Add Python 3.7 to the test matrix

This requires changing how we create the test matrix, as there are no
Ubuntu "trusty" distributions available of Python 3.7 for Travis.

cf https://docs.travis-ci.com/user/languages/python/
