travis create database before running tests

This commit is contained in:
wvengen 2013-07-24 21:47:27 +02:00
parent 71d25c5ebb
commit 63a0c0cff6
1 changed files with 1 additions and 0 deletions

View File

@ -8,5 +8,6 @@ before_install:
- "sh -e /etc/init.d/xvfb start"
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'
script: bundle exec rake spec