summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..3018418
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,15 @@
+language: php
+phps:
+ - 5.3
+script: cd tests && phpunit .
+notifications:
+ irc: "irc.freenode.org#semanticscuttle"
+
+before_script:
+ - mysql -e 'create database semanticscuttle_test;'
+ - mysql semanticscuttle_test < data/tables.sql
+ - cat data/config.php.dist | sed "s/'username'/'root'/" | sed "s/'password'/''/" | sed "s/'scuttle'/'semanticscuttle_test'/" | sed "s/'mysql4'/'mysqli'/" > data/config.php
+ - pyrus install pear/HTTP_Request2
+ - pyrus install pear/PEAR
+ - pyrus install pear/Stream_Var
+ - phpenv rehash