---
language: python
sudo: false
cache: pip
matrix:
  allow_failures:
    - python: nightly
    - env: DJANGO="https://github.com/django/django/archive/master.tar.gz"
  exclude:
    - python: "2.7"
      env: DJANGO="https://github.com/django/django/archive/master.tar.gz"
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "nightly"
env:
  - DJANGO="Django>=1.8,<1.9"
  - DJANGO="Django>=1.11,<1.12"
  - DJANGO="Django>=2.0,<2.1"
  - DJANGO="https://github.com/django/django/archive/master.tar.gz"
before_install:
  - pip install --quiet codecov
install:
  - pip install --quiet --pre $DJANGO
  - python setup.py -q install
script:
  - coverage run setup.py -v test
after_success:
  - codecov

---
language: python
sudo: false
cache: pip
matrix:
  allow_failures:
    - python: nightly
    - env: DJANGO="https://github.com/django/django/archive/master.tar.gz"
  exclude:
    - python: "2.7"
      env: DJANGO="Django>=2.0,<2.1"
    - python: "2.7"
      env: DJANGO="https://github.com/django/django/archive/master.tar.gz"
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "nightly"
env:
  - DJANGO="Django>=1.8,<1.9"
  - DJANGO="Django>=1.11,<1.12"
  - DJANGO="Django>=2.0,<2.1"
  - DJANGO="https://github.com/django/django/archive/master.tar.gz"
before_install:
  - pip install --quiet codecov
install:
  - pip install --quiet --pre $DJANGO
  - python setup.py -q install
script:
  - coverage run setup.py -v test
after_success:
  - codecov

Exclude Django 2.0 from testing against Python 2.7
Exclude Django 2.0 from testing against Python 2.7
