mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Added travis database yml
This commit is contained in:
parent
fd500f4ee1
commit
76af6a8182
2 changed files with 26 additions and 2 deletions
|
@ -2,14 +2,19 @@ language: ruby
|
|||
rvm:
|
||||
- 2.2
|
||||
- ruby-head
|
||||
|
||||
env:
|
||||
- DB=postgresql
|
||||
sudo: false
|
||||
script: 'ci/travis.rb'
|
||||
before_install:
|
||||
- gem install bundler
|
||||
- "rm ${BUNDLE_GEMFILE}.lock"
|
||||
before_script:
|
||||
- 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
|
||||
script:
|
||||
- RAILS_ENV=test bundle exec rake
|
||||
cache: bundler
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
|
|
19
config/database-travis.yml
Normal file
19
config/database-travis.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
default: &default
|
||||
host: localhost
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
pool: 5
|
||||
username: postgres
|
||||
password:
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
database: registry_test
|
||||
|
||||
whois_test:
|
||||
<<: *default
|
||||
database: registry_whois_test
|
||||
|
||||
api_log_test:
|
||||
<<: *default
|
||||
database: registry_api_log_test
|
Loading…
Add table
Add a link
Reference in a new issue