travis-ci: setup database and config file before running tests
This commit is contained in:
parent
7b50608138
commit
a0ab456798
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user