mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +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
|
- gem install bundler
|
||||||
- "rm ${BUNDLE_GEMFILE}.lock"
|
- "rm ${BUNDLE_GEMFILE}.lock"
|
||||||
before_script:
|
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
|
- bundle update
|
||||||
- cp config/application-example.yml config/application.yml
|
- cp config/application-example.yml config/application.yml
|
||||||
- cp config/database-travis.yml config/database.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:
|
script:
|
||||||
- RAILS_ENV=test bundle exec rake
|
- RAILS_ENV=test bundle exec rake
|
||||||
cache: bundler
|
cache: bundler
|
||||||
|
services:
|
||||||
|
- postgresql
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.3"
|
postgresql: "9.3"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue