mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +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:
|
rvm:
|
||||||
- 2.2
|
- 2.2
|
||||||
- ruby-head
|
- ruby-head
|
||||||
|
env:
|
||||||
|
- DB=postgresql
|
||||||
sudo: false
|
sudo: false
|
||||||
script: 'ci/travis.rb'
|
|
||||||
before_install:
|
before_install:
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
- "rm ${BUNDLE_GEMFILE}.lock"
|
- "rm ${BUNDLE_GEMFILE}.lock"
|
||||||
before_script:
|
before_script:
|
||||||
- bundle update
|
- 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
|
cache: bundler
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.3"
|
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