language: python
cache: pip
sudo: false
python:
  - 2.7
  - 3.5
  - 3.6
  - 3.7
  - pypy
  - pypy3
env:
  - FLAVOUR=signxml
matrix:
  include:
  - python: 2.7
    env: FLAVOUR=legacy
  - python: 2.7
    env: FLAVOUR=legacy-defusedxml
  - python: 2.7
    env: FLAVOUR=lxml
  - python: 2.7
    env: FLAVOUR=lxml-defusedxml
  - python: 3.6
    env: FLAVOUR=legacy
  - python: 3.6
    env: FLAVOUR=legacy-defusedxml
  - python: 3.6
    env: FLAVOUR=lxml
  - python: 3.6
    env: FLAVOUR=lxml-defusedxml
  - python: 3.6
    env: TOXENV=flake8
  - python: 3.6
    env: TOXENV=docs
install: pip install tox
script: tox -e "${TOXENV:-$(echo py${TRAVIS_PYTHON_VERSION}-${FLAVOUR} | tr -d . | sed -e 's/pypypy/pypy/')}" --skip-missing-interpreters false

language: python
os: linux
dist: bionic
cache: pip
python:
  - 2.7
  - 3.5
  - 3.6
  - 3.7
  - pypy3
env:
  - FLAVOUR=signxml
jobs:
  include:
  - python: 2.7
    env: FLAVOUR=legacy
  - python: 2.7
    env: FLAVOUR=legacy-defusedxml
  - python: 2.7
    env: FLAVOUR=lxml
  - python: 2.7
    env: FLAVOUR=lxml-defusedxml
  - python: 3.6
    env: FLAVOUR=legacy
  - python: 3.6
    env: FLAVOUR=legacy-defusedxml
  - python: 3.6
    env: FLAVOUR=lxml
  - python: 3.6
    env: FLAVOUR=lxml-defusedxml
  - python: 3.6
    env: TOXENV=flake8
  - python: 3.6
    env: TOXENV=docs
install: pip install tox
script: tox -e "${TOXENV:-$(echo py${TRAVIS_PYTHON_VERSION}-${FLAVOUR} | tr -d . | sed -e 's/pypypy/pypy/')}" --skip-missing-interpreters false

Drop Travis testing for pypy2
Drop Travis testing for pypy2

Recent distributions no longer carry the older pypy2. This also updates
to the config to use bionic instead of xenial.
