Permalink
Browse files

Update travis.yml to test against multiple driver versions

  • Loading branch information...
1 parent 3994f6b commit b47c335b6374b092f49f875bba3ea72c4c9d318b @jmikola jmikola committed Jul 19, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 .travis.yml
View
@@ -4,10 +4,14 @@ php:
- 5.3
- 5.4
+env:
+ - MONGO_VERSION=1.2.11
+ - MONGO_VERSION=1.2.10
+
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 b47c335

Please sign in to comment.