language: python

python:
  - "2.7"

services:
  - postgresql

addons:
  postgresql: "9.3"

before_script:
  - psql template1 postgres -c 'create extension hstore;'
  - psql -c 'create database geokey;' -U postgres
  - psql -U postgres -d geokey -c "create extension postgis;"
  - cp core/settings/project.sample.py core/settings/project.py
  - cp core/url/extensions.sample.py core/url/extensions.py
  - python manage.py migrate

install:
  - pip install -r requirements.txt
  - pip install coveralls

script:
  - python manage.py test --nocapture --nologcapture
  - coverage run --source=applications,projects,categories,contributions,datagroupings,users manage.py test

after_success: coveralls

language: python

python:
  - "2.7"

services:
  - postgresql

addons:
  postgresql: "9.4"

before_script:
  - psql template1 postgres -c 'create extension hstore;'
  - psql -c 'create database geokey;' -U postgres
  - psql -U postgres -d geokey -c "create extension postgis;"
  - cp core/settings/project.sample.py core/settings/project.py
  - cp core/url/extensions.sample.py core/url/extensions.py
  - python manage.py migrate

install:
  - pip install -r requirements.txt
  - pip install coveralls

script:
  - python manage.py test --nocapture --nologcapture
  - coverage run --source=applications,projects,categories,contributions,datagroupings,users manage.py test

after_success: coveralls

Switch Travis to Postgres 9.4
Switch Travis to Postgres 9.4
