Skip to content

Commit 8f386a0

Browse files
committed
Bypass launchpad.net for Xenial builds
1 parent 8ec4615 commit 8f386a0

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

bin/compile-extension-memcached

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,23 @@ set -o xtrace
33
set -o errexit
44
source $(dirname $0)/compile-extensions-common
55

6+
function install_memcache() {
7+
if [ $(lsb_release -cs) = 'precise' || $(lsb_release -cs) = 'trusty' ]; then
8+
pushd /tmp
9+
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
10+
tar xzf libmemcached-1.0.18.tar.gz
11+
pushd libmemcached-1.0.18
12+
./configure --prefix=$INSTALL_DEST/$VERSION && make && make install
13+
popd
14+
popd
15+
else
16+
sudo apt-get install memcached
17+
fi
18+
}
19+
620
travis_time_start
721

8-
pushd /tmp
9-
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
10-
tar xzf libmemcached-1.0.18.tar.gz
11-
pushd libmemcached-1.0.18
12-
./configure --prefix=$INSTALL_DEST/$VERSION && make && make install
13-
popd
14-
popd
22+
install_memcache
1523

1624
if [[ $VERSION =~ ^7 || $VERSION =~ ^master$ ]]; then
1725
pecl download memcached-3.1.2

0 commit comments

Comments
 (0)