Permalink
Browse files

Enable Travis CI and refactor test bootstrap

Conflicts:

	Tests/bootstrap.php
  • Loading branch information...
1 parent 9b009bb commit 35b27531fb1c739fefd88f3aa5b2d9bccc087f53 @jmikola jmikola committed May 17, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 .travis.yml
View
@@ -0,0 +1,17 @@
+language: php
+
+php:
+ - 5.3
+ - 5.4
+env:
+ - DB=mongodb
+
+before_script:
+ - wget http://pecl.php.net/get/mongo-1.2.7.tgz
+ - tar -xzf mongo-1.2.7.tgz
+ - sh -c "cd mongo-1.2.7 && phpize && ./configure --enable-mongo && make && sudo make install"
+ - echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
+ - wget -nc http://getcomposer.org/composer.phar
+ - php composer.phar install
+
+script: phpunit -c .

0 comments on commit 35b2753

Please sign in to comment.