-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8835c5
commit 53cb427
Showing
1 changed file
with
1 addition
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |