Skip to content

Instantly share code, notes, and snippets.

@fiunchinho
Forked from gyndav/.travis.yml
Created August 29, 2012 20:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiunchinho/3518284 to your computer and use it in GitHub Desktop.
Save fiunchinho/3518284 to your computer and use it in GitHub Desktop.
Simple Mongo PHP Driver extension installer for Travis CI. Works like a charm for other PECL extensions too.
before_script:
- ./path/to/mongo-php-driver-installer.sh
#!/bin/bash
wget http://pecl.php.net/get/mongo-1.2.10.tgz
tar -xzf mongo-1.2.10.tgz
sh -c "cd mongo-1.2.10 && phpize && ./configure && sudo make install"
echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment