language: python
python:
  - "2.6"
  - "2.7"

install: pip install -r requirements.txt --use-mirrors

before_script:
  - wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.tar.gz
  - tar xvzf elasticsearch-0.19.8.tar.gz
  - sudo apt-get update
  - sudo apt-get install openjdk-7-jre-headless
  - PWD=`pwd`
  - sed -ie 's/\/opt\/Brownian\//\/home\/vagrant\/builds\/grigorescu\/Brownian\//' Brownian/settings.py
  - ES_PATH=$PWD/elasticsearch-0.19.8 ./elasticsearch-0.19.8/bin/elasticsearch
  - sleep 15
  - curl -s -XPOST localhost:9200/_bulk --data-binary @tests/data.json
  - DJANGO_SETTINGS_MODULE="Brownian.settings" python ./manage.py syncdb --noinput

script: DJANGO_SETTINGS_MODULE="Brownian.settings" nosetests
language: python
python:
  - "2.6"
  - "2.7"

install: pip install -r requirements.txt --use-mirrors

services:
  - elasticsearch

before_script:
  - sed -ie 's/\/opt\/Brownian\//\/home\/travis\/build\/grigorescu\/Brownian\//' Brownian/settings.py
  - curl -s -XPOST localhost:9200/_bulk --data-binary @tests/data.json
  - DJANGO_SETTINGS_MODULE="Brownian.settings" python ./manage.py syncdb --noinput

script: DJANGO_SETTINGS_MODULE="Brownian.settings" nosetests
Update config to reflect changes to Travis infrastructure.
Travis: Update config to reflect changes to Travis infrastructure.
