initialize database on travis
This commit is contained in:
parent
63a0c0cff6
commit
f0c831ccd9
1 changed files with 1 additions and 0 deletions
|
@ -10,4 +10,5 @@ before_script:
|
||||||
- "bundle exec rake foodsoft:setup:stock_config"
|
- "bundle exec rake foodsoft:setup:stock_config"
|
||||||
- "mysql -e 'create database foodsoft_test;'"
|
- "mysql -e 'create database foodsoft_test;'"
|
||||||
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
|
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
|
||||||
|
- 'bundle exec rake db:schema:load RAILS_ENV=test'
|
||||||
script: bundle exec rake spec
|
script: bundle exec rake spec
|
||||||
|
|
Loading…
Reference in a new issue