Carsten Brandt
11 years ago
2 changed files with 14 additions and 7 deletions
@ -1,16 +1,18 @@
|
||||
#!/bin/sh |
||||
|
||||
install_memcache() { |
||||
if [ "$(expr "$TRAVIS_PHP_VERSION" ">=" "5.5")" -eq 1 ]; then |
||||
MEMCACHE_VERSION="2.2.7" |
||||
wget "http://pecl.php.net/get/memcache-$MEMCACHE_VERSION.tgz" && |
||||
tar -zxf "memcache-$MEMCACHE_VERSION.tgz" && |
||||
sh -c "cd memcache-$MEMCACHE_VERSION && phpize && ./configure --enable-memcache && make && sudo make install" |
||||
fi |
||||
# if [ "$(expr "$TRAVIS_PHP_VERSION" ">=" "5.5")" -eq 1 ]; then |
||||
# MEMCACHE_VERSION="2.2.7" |
||||
# wget "http://pecl.php.net/get/memcache-$MEMCACHE_VERSION.tgz" && |
||||
# tar -zxf "memcache-$MEMCACHE_VERSION.tgz" && |
||||
# sh -c "cd memcache-$MEMCACHE_VERSION && phpize && ./configure --enable-memcache && make && sudo make install" |
||||
# fi |
||||
|
||||
echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini |
||||
|
||||
return $? |
||||
} |
||||
|
||||
install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log ) |
||||
install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log ) |
||||
|
||||
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini |
||||
|
Loading…
Reference in new issue