addons:
    postgresql: "9.1"

language: python

python:
  - "2.7"

env:
  - DJANGO=Django==1.4.10

install:
  - pip install -q $DJANGO --use-mirrors
  - pip install -r requirements.txt --use-mirrors

# Django 1.4 requires a template_postgis, so install old way
before_script:
#    - sudo apt-get install libgeoip-dev
#    - createdb -U postgres -E UTF8 template_postgis
#    - psql -U postgres -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';"
#    - psql -U postgres -d template_postgis -f /usr/share/postgresql/9.2/contrib/postgis-2.1/postgis.sql
#    - psql -U postgres -d template_postgis -f /usr/share/postgresql/9.2/contrib/postgis-2.1/spatial_ref_sys.sql
#    - psql -U postgres -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;"
#    - psql -U postgres -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"
#    - psql -U postgres -d template_postgis -c "GRANT ALL ON geography_columns TO PUBLIC;"
#    - psql -U postgres -c "create database jmbo_twitter encoding 'UTF8' template template_postgis"
    - psql -U postgres -c "create database jmbo_twitter encoding 'UTF8'"

script: python setup.py test

addons:
    postgresql: "9.1"

language: python

python:
  - "2.7"

env:
  - DJANGO=Django==1.4.10

install:
  - pip install -q $DJANGO --use-mirrors
  - pip install -r requirements.txt --use-mirrors

before_script:
    - psql -U postgres -c "create database jmbo_twitter encoding 'UTF8'"

script: python setup.py test

Remove cruft from Travis conf
Remove cruft from Travis conf
