language: python
dist: xenial

addons:
  postgresql: "9.6"

matrix:
  include:
   - env: TOXENV=py35-dj20-sqlite-taggit0
     python: 3.5
   - env: TOXENV=py36-dj20-sqlite-taggit1
     python: 3.6
   - env: TOXENV=py36-dj21-sqlite-taggit0
     python: 3.6
   - env: TOXENV=py35-dj22-sqlite-taggit0
     python: 3.5
   - env: TOXENV=py36-dj22-sqlite-taggit1
     python: 3.6
   - env: TOXENV=py37-dj22-sqlite-taggit0
     python: 3.7
   - env: TOXENV=py35-dj20-postgres-taggit0
     python: 3.5
   - env: TOXENV=py36-dj20-postgres-taggit0
     python: 3.6
   - env: TOXENV=py37-dj21-postgres-taggit1
     python: 3.7
   - env: TOXENV=py35-dj22-postgres-taggit1
     python: 3.5
   - env: TOXENV=py36-dj22-postgres-taggit1
     python: 3.6
   - env: TOXENV=py37-dj22-postgres-taggit1
     python: 3.7
   - env: TOXENV=py37-dj22stable-postgres-taggit1
     python: 3.7
   - env: TOXENV=py37-djmaster-postgres-taggit1
     python: 3.7
  allow_failures:
    # allow failures against Django git master and 2.2.x stable
    - env: TOXENV=py37-dj22stable-postgres-taggit1
    - env: TOXENV=py37-djmaster-postgres-taggit1

install:
  - pip install tox
  - createdb modelcluster

script:
  tox
