language: python
install: pip install -r requirements.txt
sudo: false
before_script:
- psql -c 'create database civic_json_worker_test;' -U postgres
- psql -c 'create database peopledbtest;' -U postgres
- psql -c '\i test/peopledbtest.pgsql' -U postgres
script:
- green test/ -vvv --run-coverage
- flake8 . --exclude=migrations,test --ignore=E501,E711,E712 --exit-zero
notifications:
  webhooks: http://project-monitor.codeforamerica.org/projects/72d031cc-8f21-4968-8db6-ff7370f5e98b/status
  slack: cfa:IjK8dNdwBJHL0Xc9FqvROliV

language: python
install: pip install -r requirements.txt
sudo: false
services:
  - postgresql
before_script:
- psql -c 'create database civic_json_worker_test;' -U postgres
- psql -c 'create database peopledbtest;' -U postgres
- psql -c '\i test/peopledbtest.pgsql' -U postgres
script:
- green test/ -vvv --run-coverage
- flake8 . --exclude=migrations,test --ignore=E501,E711,E712 --exit-zero
notifications:
  webhooks: http://project-monitor.codeforamerica.org/projects/72d031cc-8f21-4968-8db6-ff7370f5e98b/status
  slack: cfa:IjK8dNdwBJHL0Xc9FqvROliV
addons:
  postgresql: "9.4"

Use PostgreSQL 9.4 on Travis
Use PostgreSQL 9.4 on Travis

We need a newer version than the default (one that supports JSONB
columns). Postgres 9.4 is the version currently running in production.
