---
language: python
python:
- '3.3'
- '2.7'
- '2.6'
services:
- elasticsearch
before_install:
- psql -c 'create database test_froide;' -U postgres
- export PIP_USE_MIRRORS=true
- phantomjs --version
- phantomjs --webdriver= &
install:
- pip install -r requirements-test.txt
- pip install psycopg2
- pip install -e .
script:
- export DATABASE_URL=postgres://postgres@127.0.0.1/froide
- make test
branches:
  only:
  - master

---
language: python
python:
- '3.3'
- '2.7'
- '2.6'
services:
- elasticsearch
before_install:
- psql -c 'create database froide;' -U postgres
- phantomjs --version
- phantomjs --webdriver= &
install:
- pip install -r requirements-test.txt
- pip install psycopg2
- pip install -e .
script:
- export DATABASE_URL=postgres://postgres@127.0.0.1/froide
- make test
branches:
  only:
  - master

Create froide database for tests correctly
Create froide database for tests correctly