From 76af6a8182469aa70009c6e16d46c99baff8d124 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Fri, 20 Feb 2015 18:19:11 +0200 Subject: [PATCH] Added travis database yml --- .travis.yml | 9 +++++++-- config/database-travis.yml | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 config/database-travis.yml diff --git a/.travis.yml b/.travis.yml index 9169f9af9..22d8154dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/config/database-travis.yml b/config/database-travis.yml new file mode 100644 index 000000000..bf0765265 --- /dev/null +++ b/config/database-travis.yml @@ -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