language: python
cache: pip

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: required
    - env: TOXENV=flake8
    - env: TOXENV=isort

install:
  - "travis_retry pip install setuptools --upgrade"
  - "pip install tox"
script:
  - tox
after_script:
  - cat .tox/$TOXENV/log/*.log

language: python
cache: pip

matrix:
  include:
    - python: "2.7"
      env: TOXENV=py27
    - python: "3.5"
      env: TOXENV=py35
    - python: "3.6"
      env: TOXENV=py36
    - python: "3.8"
      env: TOXENV=py38
    - python: "3.7"
      env: TOXENV=py37
      dist: xenial
      sudo: required
    - env: TOXENV=flake8
    - env: TOXENV=isort

install:
  - "travis_retry pip install setuptools --upgrade"
  - "pip install tox"
script:
  - tox
after_script:
  - cat .tox/$TOXENV/log/*.log

Remove python 3.4, add python 3.8
Remove python 3.4, add python 3.8
