language: ruby
env: GOVUK_APP_DOMAIN=test
bundler_args: --without development
before_script:
   - mysql -e 'CREATE DATABASE tariff_test;'
before_install:
   - sudo apt-get update -qq
   - sudo apt-get install -qq wbritish
   - cp config/database.travis.yml config/database.yml
services:
 - elasticsearch
 - redis-server
script:
 - RAILS_ENV=test bundle exec rake db:create
 - RAILS_ENV=test bundle exec rake db:migrate
 - RAILS_ENV=test bundle exec rake spec
rvm:
  - 2.0.0
  - 1.9.3
  - 1.9.2
matrix:
  allow_failures:
    - rvm: 2.0.0
branches:
  except:
    - release
notifications:
  email: false

language: ruby
env: GOVUK_APP_DOMAIN=test
bundler_args: --without development
before_script:
   - mysql -e 'CREATE DATABASE tariff_test;'
before_install:
   - export PATH=$PATH:/usr/share/elasticsearch/bin/
   - sudo apt-get update -qq
   - sudo apt-get install -qq wbritish
   - cp config/database.travis.yml config/database.yml
services:
 - elasticsearch
 - redis-server
script:
 - RAILS_ENV=test bundle exec rake db:create
 - RAILS_ENV=test bundle exec rake db:migrate
 - RAILS_ENV=test bundle exec rake spec
rvm:
  - 2.0.0
  - 1.9.3
  - 1.9.2
matrix:
  allow_failures:
    - rvm: 2.0.0
branches:
  except:
    - release
notifications:
  email: false

Make sure elasticsearh binary is in PATH
Make sure elasticsearh binary is in PATH
