sudo: false
language: python
dist: trusty
cache: pip
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 six
    - 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: required
language: python
cache: pip 
dist: trusty 
python: 
    - 3.5 
services: 
    - postgresql 
addons: 
    postgresql: 9.5 
    apt: 
        packages: 
            - postgresql-9.5-postgis-2.3 
branches: 
    only: - master 
env: 
    global: 
        - SECRET_KEY=SecretKeyForTravisCI 
        - DATABASE_URL=postgis://postgres@localhost:5432/travis_ci_test 
install: 
    - pip install --upgrade pip 
    - pip install --upgrade setuptools 
    - pip install six 
    - pip install -r requirements.txt 
before_script: 
    - psql -c 'create extension postgis' -U postgres 
    - psql -c 'create database travis_ci_test;' -U postgres 
    - python manage.py migrate --noinput 
script: 
    - python manage.py test -v 1
Update Travis CI to allow unit tests
Update Travis CI to allow unit tests
