dist: xenial
language: python

python:
    - "3.6"
    - "3.7"
    - "3.8"
    - "pypy3.6-7.1.1"
matrix:
    include:
    - python: "3.7"
      env: TOXENV="-e docs"
    - python: "3.7"
      env: TOXENV="-e pep8"
    - python: "3.7"
      env: TOXENV="-e coverage"
install:
    - pip install --upgrade pip setuptools
    - pip install tox-travis
script:
    - tox -c .travis_tox.ini $TOXENV

dist: xenial
language: python

python:
    - "3.6"
    - "3.7"
    - "3.8"
    - "pypy3"
matrix:
    include:
    - python: "3.7"
      env: TOXENV="-e docs"
    - python: "3.7"
      env: TOXENV="-e pep8"
    - python: "3.7"
      env: TOXENV="-e coverage"
install:
    - pip install --upgrade pip setuptools
    - pip install tox-travis
script:
    - tox -c .travis_tox.ini $TOXENV

Use latest pypy3 version on Travis
Use latest pypy3 version on Travis