language: php
 
php:
  - 5.3.3
  - 5.3
  - 5.4
 
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 http://getcomposer.org/composer.phar
  - php composer.phar --dev install
  - phpunit

language: php
 
php:
  - 5.3.3
  - 5.3
  - 5.4
 
before_script:
  - pecl install mongo
  - echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
  - wget http://getcomposer.org/composer.phar
  - php composer.phar --dev install
  - phpunit

Install mongo ext using pecl
Install mongo ext using pecl