Permalink
Browse files

Test both master/2.0 branches in Travis CI and allow for multiple dri…

…ver versions
  • Loading branch information...
1 parent 0a69f0b commit c365ab31d8bd8b7604afa7d8b212bec012363a7a @jmikola jmikola committed Jul 19, 2012
Showing with 11 additions and 3 deletions.
  1. +11 −3 .travis.yml
View
14 .travis.yml
@@ -4,10 +4,18 @@ php:
- 5.3
- 5.4
+branches:
+ only:
+ - master
+ - 2.0
+
+env:
+ - MONGO_VERSION=1.2.11
+
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"
+ - wget http://pecl.php.net/get/mongo-${MONGO_VERSION}.tgz
+ - tar -xzf mongo-${MONGO_VERSION}.tgz
+ - sh -c "cd mongo-${MONGO_VERSION} && phpize && ./configure && 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

0 comments on commit c365ab3

Please sign in to comment.