Skip to content

Commit

Permalink
create test env db too
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Dec 21, 2024
1 parent d8835c5 commit 53cb427
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/bin/bash
set -e
echo "Adding git safe directory"
git config --global --add safe.directory /app
echo "Sourcing NVM"
source $NVM_DIR/nvm.sh
echo "Creating DB"
bundle exec bin/rake db:create
bundle exec bin/rake db:schema:load
unset DATABASE_URL
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"
bundle exec bin/rake
echo "CI runner done"

0 comments on commit 53cb427

Please sign in to comment.