language: python

python:
  - 3.5
  - 3.6
  - 3.7
  - 3.8

env:
  - DJANGO="Django>=1.11,<2.0"
  - DJANGO="Django>=2.0,<2.1"
  - DJANGO="Django>=2.1,<2.2"
  - DJANGO="Django>=2.2,<2.3"
  - DJANGO="Django>=3.0,<3.1"

install:
  - pip install coverage coveralls $DJANGO

script: coverage run -a --branch setup.py test

matrix:
  exclude:
   - python: 3.5
     env: DJANGO="Django>=3.0,<3.1"
   - python: 3.7
     env: DJANGO="Django>=1.11,<2.0"
   - python: 3.8
     env: DJANGO="Django>=1.11,<2.0"

after_success: coveralls

language: python

python:
  - 3.5
  - 3.6
  - 3.7
  - 3.8
  - 3.9

env:
  - DJANGO="Django>=1.11,<2.0"
  - DJANGO="Django>=2.0,<2.1"
  - DJANGO="Django>=2.1,<2.2"
  - DJANGO="Django>=2.2,<2.3"
  - DJANGO="Django>=3.0,<3.1"
  - DJANGO="Django>=3.1,<3.2"
  - DJANGO="Django>=3.2,<3.3"

install:
  - pip install coverage coveralls $DJANGO

script: coverage run -a --branch setup.py test

matrix:
  exclude:
    - python: 3.5
      env: DJANGO="Django>=3.0,<3.1"
    - python: 3.7
      env: DJANGO="Django>=1.11,<2.0"
    - python: 3.8
      env: DJANGO="Django>=1.11,<2.0"

after_success: coveralls

Add Python 3.9 and Django>=3.1
Add Python 3.9 and Django>=3.1
