language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  # - "3.7"  # TODO: Re-enable after https://github.com/travis-ci/travis-ci/issues/9815 is fixed
sudo: false
install:
  - pip install tox-travis
script:
  - tox
services:
  - redis-server

language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
matrix:
  include:
    - python: 3.7
      dist: xenial
      sudo: true
cache: pip
install:
  - pip install tox-travis
script:
  - tox
services:
  - redis-server

Build on Python 3.7 and cache pip artifacts
Build on Python 3.7 and cache pip artifacts

This uses the well-established workaround to get Python 3.7 working on
Travis.
