initialize database on travis

This commit is contained in:
wvengen 2013-07-24 21:57:17 +02:00
parent 63a0c0cff6
commit f0c831ccd9

View file

@ -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