From a0ab4567987c9638d0f1ecb5eee1c879f15a6830 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 25 Jan 2012 22:51:35 +0100 Subject: [PATCH] travis-ci: setup database and config file before running tests --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index dce633b..8536d69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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