Skip to content

Instantly share code, notes, and snippets.

@OleMchls
Forked from gyndav/.travis.yml
Created August 22, 2012 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OleMchls/3424074 to your computer and use it in GitHub Desktop.
Save OleMchls/3424074 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:
- source ./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