language: python
sudo: required
dist: xenial

python:
  - "2.7"
  - "3.6"
  - "3.7"

env:
  - DJANGO_VERSION=1.8
  - DJANGO_VERSION=1.10
  - DJANGO_VERSION=1.11
  - DJANGO_VERSION=2.0
  - DJANGO_VERSION=2.1
  - DJANGO_VERSION=2.2

matrix:
  exclude:
    - python: "2.7"
      env: DJANGO_VERSION=2.0
    - python: "2.7"
      env: DJANGO_VERSION=2.1
    - python: "2.7"
      env: DJANGO_VERSION=2.2
    - python: "3.7"
      env: DJANGO_VERSION=1.11

install:
  - pip install -q Django==$DJANGO_VERSION
  - pip install -q flake8 flake8-quotes flake8-commas flake8-import-order mock

script:
  - flake8
  - python runtests.py

language: python
sudo: required
dist: xenial

python:
  - "2.7"
  - "3.6"
  - "3.7"

env:
  - DJANGO_VERSION=1.8
  - DJANGO_VERSION=1.10
  - DJANGO_VERSION=1.11
  - DJANGO_VERSION=2.0
  - DJANGO_VERSION=2.1
  - DJANGO_VERSION=2.2

matrix:
  exclude:
    - python: "2.7"
      env: DJANGO_VERSION=2.0
    - python: "2.7"
      env: DJANGO_VERSION=2.1
    - python: "2.7"
      env: DJANGO_VERSION=2.2
    - python: "3.7"
      env: DJANGO_VERSION=1.11

install:
  - pip install -q Django==$DJANGO_VERSION
  - pip install -q -U flake8 flake8-quotes flake8-commas flake8-import-order mock

script:
  - flake8
  - python runtests.py

Upgrade test dependencies to the latest version
Upgrade test dependencies to the latest version
