language: python
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7
env:
  - DJANGO=1.11
  - DJANGO=2.0
  - DJANGO=2.1
matrix:
  exclude:
    # Python/Django combinations that aren't officially supported
    - { env: DJANGO=1.10, python: 3.7 }
    - { env: DJANGO=2.0, python: 2.7 }
    - { env: DJANGO=2.1, python: 2.7 }
    - { env: DJANGO=2.1, python: 3.4 }
  include:
    - { env: TOXENV=flake8, python: 3.7 }
    - { env: TOXENV=readme, python: 3.7 }

install:
  - pip install tox-travis
script:
  - tox

dist: xenial
sudo: true

language: python
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7
env:
  - DJANGO=1.11
  - DJANGO=2.0
  - DJANGO=2.1
matrix:
  exclude:
    # Python/Django combinations that aren't officially supported
    - { env: DJANGO=1.10, python: 3.7 }
    - { env: DJANGO=2.0, python: 2.7 }
    - { env: DJANGO=2.1, python: 2.7 }
    - { env: DJANGO=2.1, python: 3.4 }
  include:
    - { env: TOXENV=flake8, python: 3.7 }
    - { env: TOXENV=readme, python: 3.7 }

install:
  - pip install tox-travis
script:
  - tox

Use Xenial Travis image (for Python 3.7)
Use Xenial Travis image (for Python 3.7)
