mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Updated travis postgres setup
This commit is contained in:
parent
76af6a8182
commit
9e92cced85
1 changed files with 7 additions and 1 deletions
|
@ -9,12 +9,18 @@ before_install:
|
|||
- gem install bundler
|
||||
- "rm ${BUNDLE_GEMFILE}.lock"
|
||||
before_script:
|
||||
- psql -c 'create database registry_test;' -U postgres
|
||||
- psql -c 'create database registry_whois_test;' -U postgres
|
||||
- psql -c 'create database registry_api_log_test;' -U postgres
|
||||
- bundle update
|
||||
- cp config/application-example.yml config/application.yml
|
||||
- cp config/database-travis.yml config/database.yml
|
||||
- RAILS_ENV=test bundle exec rake db:all:setup
|
||||
- RAILS_ENV=test bundle exec rake db:all:schema:load
|
||||
- RAILS_ENV=test bundle exec rake db:seed
|
||||
script:
|
||||
- RAILS_ENV=test bundle exec rake
|
||||
cache: bundler
|
||||
services:
|
||||
- postgresql
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue