From d4c230a6d72d0e2a40973e98bc4d104ac13164cd Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 22 Apr 2019 17:45:27 -0300 Subject: [PATCH] Set up "test" environment before dropping the rails database. After the Rails 5 upgrade, this is necessary to avoid install step failures when running tests having a pre-rails5 database already created. No issue # Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- build/run-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/run-tests.sh b/build/run-tests.sh index dbf13940b2..abf76c78f5 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -957,6 +957,7 @@ install_services/api() { || return 1 cd "$WORKSPACE/services/api" \ + && bin/rails db:environment:set RAILS_ENV=test \ && RAILS_ENV=test bundle exec rake db:drop \ && RAILS_ENV=test bundle exec rake db:setup \ && RAILS_ENV=test bundle exec rake db:fixtures:load -- 2.30.2