From 4ac2bebb8ff113c20f9bad4d90116b09c2d68aef Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 1 Jul 2012 00:32:04 +0200 Subject: [PATCH] [FEATURE] Add memcache PHP-Extension to travis ci build 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. --- install-php-extensions.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/install-php-extensions.sh b/install-php-extensions.sh index e0ee045..d7a1149 100644 --- a/install-php-extensions.sh +++ b/install-php-extensions.sh @@ -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*||"`