language: python
cache: pip
install: travis_retry pip install -U tox
script: tox
jobs:
  fast_finish: true

  include:
  - { python: '3.6', env: TOXENV=lint }
  - { python: '3.6', env: TOXENV=py36 }
  - { python: '3.6', env: TOXENV=py36-ptpython }
  - { python: '3.7', env: TOXENV=py37, dist: xenial }
  - { python: '3.6', env: TOXENV=docs }

  - stage: PyPI Release
    if: tag IS present
    python: "3.6"
    env: []
    install: skip
    script: skip
    deploy:
      provider: pypi
      user: sloria
      on:
        tags: true
      distributions: sdist bdist_wheel
      password:
        secure: EyKV0N3u3Ism+QOw8dX2smjaa2X5PipKJFuB3JCkUvOFlAs9TVF81ohaPQ8VhhU7/UgR3usi6AmC8TlQtZ/jwxw8yhDFL7zJQ5rIrQnrcEj4GCrzkw6BWth71iquyXt3tr1jobz3xv6l19kJg5IB39zTvWuxVWAB7wEUYOgF4hU=

language: python
dist: xenial
cache: pip
install: travis_retry pip install -U tox
script: tox
jobs:
  fast_finish: true

  include:
  - { python: '3.6', env: TOXENV=lint }
  - { python: '3.6', env: TOXENV=py36 }
  - { python: '3.6', env: TOXENV=py36-ptpython }
  - { python: '3.7', env: TOXENV=py37 }
  - { python: '3.6', env: TOXENV=docs }

  - stage: PyPI Release
    if: tag IS present
    python: "3.6"
    env: []
    install: skip
    script: skip
    deploy:
      provider: pypi
      user: sloria
      on:
        tags: true
      distributions: sdist bdist_wheel
      password:
        secure: EyKV0N3u3Ism+QOw8dX2smjaa2X5PipKJFuB3JCkUvOFlAs9TVF81ohaPQ8VhhU7/UgR3usi6AmC8TlQtZ/jwxw8yhDFL7zJQ5rIrQnrcEj4GCrzkw6BWth71iquyXt3tr1jobz3xv6l19kJg5IB39zTvWuxVWAB7wEUYOgF4hU=

Use xenial for all builds
Use xenial for all builds

Committed via https://github.com/asottile/all-repos
