travis-ci: setup database and config file before running tests

This commit is contained in:
Christian Weiske 2012-01-25 22:51:35 +01:00
parent 7b50608138
commit a0ab456798

View File

@ -4,3 +4,7 @@ phps:
script: cd tests && phpunit .
notifications:
irc: "irc.freenode.org#semanticscuttle"
before_script:
- mysql -e 'create database semanticscuttle_test;'
- cat data/config.php.dist | sed "s/'username'/'root'/" | sed "s/'password'/''/" | sed "s/'scuttle'/'semanticscuttle_test'/" > data/config.php