sudo: false
dist: trusty
language: python
python:
  - "2.7"
  - "3.5"
  - "3.6"
env:
  global:
    - DJANGO_SETTINGS_MODULE=settings
  matrix:
    - DJANGO="Django<1.12"
    - DJANGO="Django<2.1"
matrix:
  exclude:
    # See: https://docs.djangoproject.com/en/1.11/faq/install/#what-python-version-can-i-use-with-django
    - python: "2.7"
      env: DJANGO="Django<2.1"
cache:
  directories:
    - $HOME/.cache/pip
install:
  - pip install --upgrade pipenv
  - pipenv install $DJANGO
  - pipenv install .
  - pipenv install --dev six pytest pytest-django pytest-selenium selenium
script:
  - pipenv run python setup.py test

sudo: false
dist: xenial   # required for Python >= 3.7
language: python
python:
  - "2.7"
  - "3.5"
  - "3.6"
  - "3.7"
env:
  global:
    - DJANGO_SETTINGS_MODULE=settings
  matrix:
    - DJANGO="Django<1.12"
    - DJANGO="Django<2.1"
    - DJANGO="Django<2.2"
    - DJANGO="Django<2.3"
matrix:
  exclude:
    # See: https://docs.djangoproject.com/en/1.11/faq/install/#what-python-version-can-i-use-with-django
    - python: "2.7"
      env: DJANGO="Django<2.1"
    - python: "2.7"
      env: DJANGO="Django<2.2"
    - python: "2.7"
      env: DJANGO="Django<2.3"
cache:
  directories:
    - $HOME/.cache/pip
install:
  - pip install --upgrade pipenv
  - pipenv install $DJANGO
  - pipenv install .
  - pipenv install --dev six pytest pytest-django pytest-selenium selenium
script:
  - pipenv run python setup.py test

Test with Django 2.1, Django 2.2 and Python 3.7
Test with Django 2.1, Django 2.2 and Python 3.7
