language: python
git:
  depth: 5
matrix:
  include:
  - python: '2.7'
    env: TOXENV=py27
  - python: '2.7'
    env: TOXENV=lint
  - python: '3.4'
    env: TOXENV=py34
  - python: '3.5'
    env: TOXENV=py35
  - python: '3.6'
    env: TOXENV=py36
  - python: '3.7'
    env: TOXENV=py37
  fast_finish: true
install:
  - pip install tox
script:
  - tox -e $TOXENV

language: python
git:
  depth: 5
matrix:
  include:
  - python: '2.7'
    env: TOXENV=py27
  - python: '2.7'
    env: TOXENV=lint
  - python: '3.4'
    env: TOXENV=py34
  - python: '3.5'
    env: TOXENV=py35
  - python: '3.6'
    env: TOXENV=py36
  - python: '3.7'
    dist: xenial
    sudo: true
    env: TOXENV=py37
  fast_finish: true
install:
  - pip install tox
script:
  - tox -e $TOXENV

Add workaround for python 3.7
Travis: Add workaround for python 3.7
