[ARVADOS] created: 1.3.0-764-gd4c230a6d
Git user
git at public.curoverse.com
Mon Apr 22 21:06:10 UTC 2019
at d4c230a6d72d0e2a40973e98bc4d104ac13164cd (commit)
commit d4c230a6d72d0e2a40973e98bc4d104ac13164cd
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Mon Apr 22 17:45:27 2019 -0300
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 <ldipentima at veritasgenetics.com>
diff --git a/build/run-tests.sh b/build/run-tests.sh
index dbf13940b..abf76c78f 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
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list