Added travis database yml

This commit is contained in:
Priit Tark 2015-02-20 18:19:11 +02:00
parent fd500f4ee1
commit 76af6a8182
2 changed files with 26 additions and 2 deletions

View file

@ -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"

View 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