language: python
env:
  - DJANGO_VERSION=1.7
  - DJANGO_VERSION=1.8
  - DJANGO_VERSION=1.9
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
install:
  - pip install django==$DJANGO_VERSION --use-mirrors
  - pip install . --use-mirrors
script: ./test_project/manage.py test

language: python
env:
  - DJANGO_VERSION=1.7
  - DJANGO_VERSION=1.8
  - DJANGO_VERSION=1.9
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
matrix:
  exclude:
    - python: "3.5"
      env: "DJANGO_VERSION=1.7"
install:
  - pip install django==$DJANGO_VERSION --use-mirrors
  - pip install . --use-mirrors
script: ./test_project/manage.py test

Exclude Python 3.5 with Django 1.7 from test matrix
Exclude Python 3.5 with Django 1.7 from test matrix