Skip to content

Commit

Permalink
Merge pull request #2 from andygrunwald/memcached
Browse files Browse the repository at this point in the history
[FEATURE] Add memcache PHP-Extension to travis ci build
  • Loading branch information
helhum committed Jun 30, 2012
2 parents 5744554 + 4ac2beb commit 16eb4da
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions install-php-extensions.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/bin/bash


function installPhpExtension() {
name=$1
pyrus install pecl/$name && pyrus build pecl/$name
echo "extension=\"$name.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
}

installPhpExtension igbinary
#apt-get -y install php-apc


pecl install igbinary > /dev/null
printf "no\n" | pecl install memcache > /dev/null
echo "extension=\"memcache.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
echo "extension=\"igbinary.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

0 comments on commit 16eb4da

Please sign in to comment.