From 1e38c0f7d79656bf4c6a9e14a70b3ff10a51c8e0 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Fri, 27 Feb 2015 14:08:13 +0200 Subject: [PATCH] Updated robot setup --- bin/docker-robot | 10 ---------- bin/robot | 10 ++++------ config/database-robot.yml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 16 deletions(-) delete mode 100755 bin/docker-robot create mode 100644 config/database-robot.yml diff --git a/bin/docker-robot b/bin/docker-robot deleted file mode 100755 index fe41bd1f1..000000000 --- a/bin/docker-robot +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# -# For docker -# - -# cd to Rails root directory -cd "$(dirname "$0")"; cd .. - -bin/update-repo -bin/robot diff --git a/bin/robot b/bin/robot index 28fbde348..927bd10b0 100755 --- a/bin/robot +++ b/bin/robot @@ -16,14 +16,12 @@ export RAILS_ENV=test cd "$(dirname "$0")"; cd .. cp config/application-example.yml config/application.yml -# create manually config/database.yml +cp config/database-robot.yml config/database.yml bundle install -RAILS_ENV=test bundle exec rake db:drop -RAILS_ENV=test bundle exec rake db:all:create -RAILS_ENV=test bundle exec rake db:all:schema:load -RAILS_ENV=test bundle exec rake db:seed +RAILS_ENV=test bundle exec rake db:all:drop +RAILS_ENV=test bundle exec rake db:all:setup RAILS_ENV=test bundle exec rake assets:precompile echo "GIT_LAST_COMMITS" @@ -36,7 +34,7 @@ RCODE=$? echo "END_OF_RUBOCOP_RESULTS" echo "TEST_RESULTS" -ROBOT=true bundle exec rake test +ROBOT=true bundle exec rake TCODE=$? echo "END_OF_TEST_RESULTS" diff --git a/config/database-robot.yml b/config/database-robot.yml new file mode 100644 index 000000000..37d357726 --- /dev/null +++ b/config/database-robot.yml @@ -0,0 +1,19 @@ +default: &default + host: localhost + adapter: postgresql + encoding: unicode + pool: 5 + username: test1 + password: test + +test: + <<: *default + database: registry_test + +whois_test: + <<: *default + database: registry_whois_test + +api_log_test: + <<: *default + database: registry_api_log_test