mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Configure travis for postgres
This commit is contained in:
10
.travis.yml
10
.travis.yml
@@ -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
|
||||
|
||||
4
config/database.travis.yml
Normal file
4
config/database.travis.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
test:
|
||||
adapter: postgresql
|
||||
database: open_food_web_test
|
||||
username: postgres
|
||||
Reference in New Issue
Block a user