-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- source ./path/to/mongo-php-driver-installer.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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