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.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

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.5
      dist: trusty
      sudo: false
    - python: 3.6
      dist: trusty
      sudo: false
    - python: 3.7
      dist: xenial
      sudo: true

Drop support for Python 3.4; it reached end-of-life 3 months ago
Drop support for Python 3.4; it reached end-of-life 3 months ago

cf https://devguide.python.org/devcycle/#end-of-life-branches
