Configure travis for postgres

This commit is contained in:
Rohan Mitchell
2013-02-24 18:46:31 +11:00
parent 2b19253895
commit 3a441cd7d9
2 changed files with 12 additions and 2 deletions

View File

@@ -2,5 +2,11 @@ language: ruby
bundler_args: --without development
rvm:
- "1.9.3"
# uncomment this line if your project needs to run something other than `rake`:
script: bundle exec rspec spec
services: postgresql
before_script:
- cp config/database.travis.yml config/database.yml
- psql -c 'create database open_food_web_test;' -U postgres
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rspec spec

View File

@@ -0,0 +1,4 @@
test:
adapter: postgresql
database: open_food_web_test
username: postgres