language: python
services:
  - postgresql
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
env:
  - DJANGO=1.7.11
  - DJANGO=1.8.14
  - DJANGO=1.9.9
  - DJANGO=1.10
matrix:
  exclude:
    - python: "3.5"
      env: DJANGO=1.7.11
    - python: "3.3"
      env: DJANGO=1.9.9
    - python: "3.3"
      env: DJANGO=1.10
install:
  - pip install -q django-model-utils psycopg2 six swapper tox tqdm
  - pip install -q Django==$DJANGO
before_script:
  - psql -U postgres -c "create extension postgis"
  - psql -c 'create database django_cities;' -U postgres
  - psql -c 'CREATE EXTENSION postgis;' -U postgres -d django_cities
script:
  - PYTHONPATH=. python test_project/manage.py test test_app --noinput

language: python
services:
  - postgresql
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
env:
  - DJANGO_VERSION='Django>=1.7,<1.8'
  - DJANGO_VERSION='Django>=1.8,<1.9'
  - DJANGO_VERSION='Django>=1.9,<1.10'
  - DJANGO_VERSION='Django>=1.10,<2.0'
  - DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
matrix:
  exclude:
    - python: "3.5"
      env: DJANGO_VERSION='Django>=1.7,<1.8'
    - python: "3.3"
      env: DJANGO_VERSION='Django>=1.9,<1.10'
    - python: "3.3"
      env: DJANGO_VERSION='Django>=1.10,<2.0'
    - python: "3.3"
      env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
  allow_failures:
    - env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
install:
  - pip install -q $DJANGO_VERSION
  - pip install -q django-model-utils psycopg2 six swapper tox tqdm
before_script:
  - psql -U postgres -c "create extension postgis"
  - psql -c 'create database django_cities;' -U postgres
  - psql -c 'CREATE EXTENSION postgis;' -U postgres -d django_cities
script:
  - PYTHONPATH=. python test_project/manage.py test test_app --noinput

Test latest Django (allow failures), and improve the version strings
Test latest Django (allow failures), and improve the version strings
