mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
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.
This commit is contained in:
parent
62ef5db39d
commit
5ad41bb16f
1 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if [[ "$DATABASE_URL" == 'mysql*' ]]
|
export RAILS_ENV=test
|
||||||
|
export COVERAGE=true
|
||||||
|
|
||||||
|
bundle exec rake db:create
|
||||||
|
if [[ $DATABASE_URL == mysql* ]]
|
||||||
then
|
then
|
||||||
bundle exec rake ci:full
|
bundle exec cucumber --profile default && bundle exec rake test
|
||||||
else
|
else
|
||||||
bundle exec rake ci:lite
|
bundle exec rake test
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue