tracks/script/cibuild
Matt Rogers 5ad41bb16f Emulate the CI rake tests with the cibuild script
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.
2018-01-05 13:53:00 -06:00

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