.travis.yml
env:
- DB=postgres
language: ruby
rvm:
- "2.0.0"
before_install:
- gem install bundler --pre
before_script:
- cp config/database.yml.$DB config/database.yml
- psql -c 'create database coworfing_test;' -U postgres
script:
- RAILS_ENV=test bundle exec rake db:migrate
- bundle exec rspec spec
notifications:
hipchat: <%= ENV['HIPCHAT_TOKEN'] %>@<%= ENV['HIPCHAT_ROOM_ID'] %>