diff --git a/.travis.yml b/.travis.yml index 22d8154dc..9308b354d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,18 @@ before_install: - gem install bundler - "rm ${BUNDLE_GEMFILE}.lock" 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 - 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 + - RAILS_ENV=test bundle exec rake db:all:schema:load + - RAILS_ENV=test bundle exec rake db:seed script: - RAILS_ENV=test bundle exec rake cache: bundler +services: + - postgresql addons: postgresql: "9.3"