aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-01-25 22:51:35 +0100
committerChristian Weiske <cweiske@cweiske.de>2012-01-25 22:51:35 +0100
commita0ab4567987c9638d0f1ecb5eee1c879f15a6830 (patch)
tree9e70545c3dfbe26986576ee3f8dcf1b5ba282c0f
parent7b50608138ba2caf4da8aa83300ebf15116cc96d (diff)
downloadsemanticscuttle-a0ab4567987c9638d0f1ecb5eee1c879f15a6830.tar.gz
semanticscuttle-a0ab4567987c9638d0f1ecb5eee1c879f15a6830.tar.bz2
travis-ci: setup database and config file before running tests
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
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