language: python

python:
  - "2.7"
  - "3.5"
  - "3.6"

addons:
  postgresql: "9.4"

services: postgresql

env:
  global:
    - BUILD_ON_TRAVIS=true
    - DJANGO_SETTINGS_MODULE="application.settings"
    - PYTHONPATH="/home/travis/build/kiote/cosmopolitan"
    - PIP_USE_MIRRORS=true
  matrix:
    - DJANGO=1.9 DB=postgresql

#commands to install dependencies
install:
  - pip install -q Django==$DJANGO
  - pip install -q -r requirements.txt
  - pip install coveralls

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - psql -U postgres -c "create extension postgis"
  - python manage.py migrate --noinput

#command to run the test suite
script:
  - python manage.py test
  - coverage run --source=cosmopolitan manage.py test

after_success: coveralls

language: python

python:
  - "2.7"
  - "3.5"
  - "3.6"

dist: trusty
sudo: false
addons:
  postgresql: "9.5"
  apt:
    packages:
      - postgresql-9.5-postgis-2.3

services: postgresql

env:
  global:
    - BUILD_ON_TRAVIS=true
    - DJANGO_SETTINGS_MODULE="application.settings"
    - PYTHONPATH="/home/travis/build/kiote/cosmopolitan"
    - PIP_USE_MIRRORS=true
  matrix:
    - DJANGO=1.9 DB=postgresql

#commands to install dependencies
install:
  - pip install -q Django==$DJANGO
  - pip install -q -r requirements.txt
  - pip install coveralls

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - psql -U postgres -c "create extension postgis"
  - python manage.py migrate --noinput

#command to run the test suite
script:
  - python manage.py test
  - coverage run --source=cosmopolitan manage.py test

after_success: coveralls

Install postgis and postgres directly
Install postgis and postgres directly
