language: python
branches:
  - master
  - travis
services:
  - postgresql
python:
  - "3.5"
before_install:
  - curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.4/elasticsearch-2.4.4.deb && sudo dpkg -i --force-confnew elasticsearch-2.4.4.deb && sudo service elasticsearch restart
  - sudo apt-get install python2.7
install:
  - pip install -q elasticsearch
  - pip install -q psycopg2
  - pip install -q pyyaml
  - pip install -q pytz
  - pip install -q django
  - pip install -q django-haystack
before_script:
  - sleep 10
  - psql -c 'CREATE DATABASE noveltorpedo;' -U postgres
  - python website/manage.py migrate
  - python website/manage.py seed
  - python website/manage.py update_index
script:
  - python website/manage.py test
  - python2 website/manage.py test scrapers/tumblr

language: python
branches:
  - master
  - travis
services:
  - postgresql
python:
  - "3.5"
before_install:
  - curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.4/elasticsearch-2.4.4.deb && sudo dpkg -i --force-confnew elasticsearch-2.4.4.deb && sudo service elasticsearch restart
  - sudo apt-get install python2.7
install:
  - pip install -q elasticsearch
  - pip2 install -q elasticsearch
  - pip install -q psycopg2
  - pip2 install -q psycopg2
  - pip install -q pyyaml
  - pip2 install -q pyyaml
  - pip install -q pytz
  - pip2 install -q pytz
  - pip install -q django
  - pip2 install -q django
  - pip install -q django-haystack
  - pip2 install -q django-haystack
before_script:
  - sleep 10
  - psql -c 'CREATE DATABASE noveltorpedo;' -U postgres
  - python website/manage.py migrate
  - python website/manage.py seed
  - python website/manage.py update_index
script:
  - python website/manage.py test
  - python2 website/manage.py test scrapers/tumblr

Duplicate requirements between versions (yuck).
Duplicate requirements between versions (yuck).
