language: python
sudo: false
cache: pip

install: travis_retry pip install -U tox

script: tox
jobs:
  fast_finish: true

  include:
  - python: '3.6'
    env: TOXENV=lint
  - python: '2.6'
    env: TOXENV=py26
  - python: '2.7'
    env: TOXENV=py27
  - python: '3.4'
    env: TOXENV=py34
  - python: '3.5'
    env: TOXENV=py35
  - python: '3.6'
    env: TOXENV=py36
  - python: 'pypy'
    env: TOXENV=pypy
  - 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: ESoVNuEqjuNGCCGMbjHwIJS3LfPL2BKPQG5RuDiW8qo4+BN25yobiD+Bo7kozUtUHVKa6oTdi4Gqb1i5IUKNcaP0qBItdkk3LPOAUyOhdFZF+dL22JhajJ6LNO7i1cyUTzjYaS2cOTG8kSSYd7W9Okfp5bY6HtUNgCqhI1mZfMU=

language: python
sudo: false
cache: pip

install: travis_retry pip install -U tox

script: tox
jobs:
  fast_finish: true

  include:
  - { python: '3.6', env: TOXENV=lint }
  - { python: '2.6', env: TOXENV=py26 }
  - { python: '2.7', env: TOXENV=py27 }
  - { python: '3.4', env: TOXENV=py34 }
  - { python: '3.5', env: TOXENV=py35 }
  - { python: '3.6', env: TOXENV=py36 }
  - { python: 'pypy', env: TOXENV=pypy }
  - { 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: ESoVNuEqjuNGCCGMbjHwIJS3LfPL2BKPQG5RuDiW8qo4+BN25yobiD+Bo7kozUtUHVKa6oTdi4Gqb1i5IUKNcaP0qBItdkk3LPOAUyOhdFZF+dL22JhajJ6LNO7i1cyUTzjYaS2cOTG8kSSYd7W9Okfp5bY6HtUNgCqhI1mZfMU=

Make Travis config easier to read
Make Travis config easier to read

Visually align the Python versions and TOXENV names

As seen in
https://github.com/encode/django-rest-framework/pull/5519
and https://github.com/jcassee/django-analytical/blob/master/.travis.yml
