Skip to content

Commit

Permalink
simplified memcache installation on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Sep 14, 2013
1 parent a1af321 commit 0a5b1a9
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/unit/data/travis/memcache-setup.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
#!/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

echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

return $?
}

install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log )

echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

0 comments on commit 0a5b1a9

Please sign in to comment.