language: python
cache: pip
sudo: false
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 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.7
    dist: xenial
    env: FLAVOUR=signxml
  - 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/')}"

language: python
cache: pip
sudo: false
python:
  - 2.7
  - 3.4
  - 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/')}"

Use default dist for Python 3.7 build
Use default dist for Python 3.7 build

Travis now defaults to using xenial.
