sudo: false
language: python
cache: pip
python:
    - 3.4
    - 3.5
    - 3.6
    - pypy
env:
    - DJANGO_VERSION = 1.11
    - DJANGO_VERSION = 2.0
    - DJANGO_VERSION = 2.1
matrix:
    include:
        # 1.11 is the last Django version to support python 2.7
        - python: 2.7
          env: DJANGO_VERSION=1.11
install:
    - pip install -r requirements.txt
    - if [[ $DJANGO_VERSION != 'latest' ]]; then pip install django==$DJANGO_VERSION; fi
    # Django 2.0 is supposed to drop support for everything but python>=3.5
    # and this config file will need to be refactored whenever that is released
    - if [[ $DJANGO_VERSION == 'latest' ]]; then pip install --upgrade 'django<2.0'; fi
script:
    - python setup.py nosetests
after_success:
    - coveralls

sudo: false
language: python
cache: pip
python:
    - 3.4
    - 3.5
    - 3.6
    - pypy
env:
    - DJANGO_VERSION=1.11
    - DJANGO_VERSION=2.0
    - DJANGO_VERSION=2.1
    - DJANGO_VERSION='latest'
matrix:
    include:
        # 1.11 is the last Django version to support python 2.7
        - python: 2.7
          env: DJANGO_VERSION=1.11
install:
    - pip install -r requirements.txt
    - if [[ $DJANGO_VERSION != 'latest' ]]; then pip install django==$DJANGO_VERSION; fi
script:
    - python setup.py nosetests
after_success:
    - coveralls

Correct invalid env defs and handling
Travis: Correct invalid env defs and handling

There shouldn't be spaces around `=` and the specific handling of the 'LATEST' version is no longer necessary because requirements.txt specifies the latest version
