language: python
python:
  - "2.7"
install: "pip install -r test-requirements.txt --use-mirrors"
# command to run tests
script: python setup.py install && ./run test

branches:
  only:
    - master

services:
  - elasticsearch

language: python
python:
    - "2.7"

before_install:
    - sudo apt-get purge elasticsearch -fy
    - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.1.deb
    - sudo dpkg -i elasticsearch-1.2.1.deb
    - sudo service elasticsearch restart
    - sleep 10  # Let it breathe! :D

install:
    - /usr/share/elasticsearch/bin/elasticsearch -v

before_script:
    - curl http://localhost:9200/  # Check if ES is up and listening

script:
    - python setup.py install
    - ./run test

Put Travis back in the game
Put Travis back in the game

Update .travis.yml to install version 1.2.1 of ElasticSearch. This
ensures the build passes with latest stable version of ES.
