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
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:
 only:
   - master
notifications:
  email: false

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
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

Test all branches on Travis except for release branch
Test all branches on Travis except for release branch

When I develop functionality I'd like Travis to continuously test my
branch before I raise a pull request so that I know when it works or
doesn't. This used to be a problem when we received emails for spec
failures from all branches, but email notifications are now disabled so
it should be desired behaviour.
