mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Creates the databases and runs the tests depending upon the database url in use. If mysql, the cucumber is ran. If not mysql, then only the test suite is run.
12 lines
232 B
Bash
Executable file
12 lines
232 B
Bash
Executable file
#!/usr/bin/env bash
|
|
export RAILS_ENV=test
|
|
export COVERAGE=true
|
|
|
|
bundle exec rake db:create
|
|
if [[ $DATABASE_URL == mysql* ]]
|
|
then
|
|
bundle exec cucumber --profile default && bundle exec rake test
|
|
else
|
|
bundle exec rake test
|
|
fi
|
|
|