dist: bionic
language: python
python:
  - '3.5'
  - '3.6'
  - '3.7'
  - '3.8'
  - '3.9-dev'
  - 'pypy3'  # PyPy 3.6-7.1.1
matrix:
  include:
    - env: TOXENV=lint
      python: '3.7'
    - env: TOXENV=mypy
      python: '3.7'

install:
  - pip3 install -U pip setuptools tox-travis
  - pip3 install .[dev]
script: tox

dist: bionic
language: python
python:
  - '3.5'
  - '3.6'
  - '3.7'
  - '3.8'
  - '3.9'
  - 'pypy3'  # PyPy 3.6-7.1.1
matrix:
  include:
    - env: TOXENV=lint
      python: '3.8'
    - env: TOXENV=mypy
      python: '3.8'

install:
  - pip3 install -U pip setuptools tox-travis
  - pip3 install .[dev]
script: tox

Test on Python 3.9 proper, not dev
Test on Python 3.9 proper, not dev
