initialize database on travis

This commit is contained in:
wvengen 2013-07-24 21:57:17 +02:00
parent 63a0c0cff6
commit f0c831ccd9
1 changed files with 1 additions and 0 deletions

View File

@ -10,4 +10,5 @@ before_script:
- "bundle exec rake foodsoft:setup:stock_config"
- "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'
- 'bundle exec rake db:schema:load RAILS_ENV=test'
script: bundle exec rake spec