sudo: false
language: python
cache: pip
python:
    - 3.4
    - 3.5
    - 3.6
    - pypy3.4
    - pypy3.5
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
        - python: pypy2.7
          env: DJANGO_VERSION=1.11
    exclude:
        # Django 2.0 is the last version to support Python <= 3.4.
        - python: 3.4
          env: DJANGO_VERSION=2.1
        - python: 3.4
          env: DJANGO_VERSION='latest'
        - python: pypy3.4
          env: DJANGO_VERSION=2.1
        - python: pypy3.4
          env: DJANGO_VERSION='latest'
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

sudo: false
language: python
cache: pip
python:
    - 3.4
    - 3.5
    - 3.6
    - pypy3.5
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
        - python: pypy2.7
          env: DJANGO_VERSION=1.11
    exclude:
        # Django 2.0 is the last version to support Python <= 3.4.
        - python: 3.4
          env: DJANGO_VERSION=2.1
        - python: 3.4
          env: DJANGO_VERSION='latest'
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

Remove pypy3.4. This isn't a thing.
Travis: Remove pypy3.4. This isn't a thing.
