Skip to content

Commit

Permalink
[FEATURE] Add memcache PHP-Extension to travis ci build
Browse files Browse the repository at this point in the history
This commit adds the "memcache" PHP-Extension to our Travis-CI build.
Further more it restructues the .sh file, because php extensions
can be installed over pecl.
  • Loading branch information
andygrunwald committed Jun 30, 2012
1 parent 07ed914 commit 4ac2beb
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 4ac2beb

Please sign in to comment.