sudo: false
language: python
cache: pip
dist: trusty
python:
    - 2.7

services:
    - postgresql
addons:
    postgresql: 9.5
    apt:
        packages:
            - postgresql-9.5-postgis-2.3
branches:
    only:
        - master
env:
    global:
        - SECRET_KEY=SecretKeyForTravis
        - DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
install:
    - pip install --upgrade pip
    - pip install --upgrade setuptools
    - pip install -r requirements.txt

before_script:
    - psql -c "create database travis_ci_test;" -U postgres
    - psql -c "create extension postgis;" -U postgres -d travis_ci_test
    - python manage.py migrate --noinput
script:
    - python manage.py test -k -v 0

sudo: false
language: python
cache: pip
dist: trusty
python:
    - 2.7
    - 3.5
services:
    - postgresql
addons:
    postgresql: 9.5
    apt:
        packages:
            - postgresql-9.5-postgis-2.3
branches:
    only:
        - master
env:
    global:
        - SECRET_KEY=SecretKeyForTravis
        - DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
install:
    - pip install --upgrade pip
    - pip install --upgrade setuptools
    - pip install -r requirements.txt

before_script:
    - psql -c "create database travis_ci_test;" -U postgres
    - psql -c "create extension postgis;" -U postgres -d travis_ci_test
    - python manage.py migrate --noinput
script:
    - python manage.py test -k -v 0

Add Python 3.5 to TravisCI config.
Add Python 3.5 to TravisCI config.
