From d8835c5a6be3bae02a9871f497ff715b3e6484cf Mon Sep 17 00:00:00 2001 From: Tim Cowlishaw Date: Sat, 21 Dec 2024 12:55:05 +0100 Subject: [PATCH] create test env db too --- ci.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci.sh b/ci.sh index 2691f05b..5b7e1c54 100755 --- a/ci.sh +++ b/ci.sh @@ -6,8 +6,9 @@ echo "Sourcing NVM" source $NVM_DIR/nvm.sh echo "Creating DB" bundle exec bin/rake db:create -echo "Loading Schema" bundle exec bin/rake db:schema:load +RAILS_ENV=test bundle exec bin/rake db:create +RAILS_ENV=test bundle exec bin/rake db:schema:load echo "Unsetting database url" unset DATABASE_URL echo "Running tests"