10000 Try installing zookeeper extension. · symfony/symfony@5726c1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5726c1f

Browse files
Try installing zookeeper extension.
1 parent 0168e5a commit 5726c1f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,15 @@ before_install:
106106
local ext_name=$1
107107
local ext_so=$2
108108
local INI=$3
109+
local ext_opt=$4
109110
local ext_dir=$(php -r "echo ini_get('extension_dir');")
110111
local ext_cache=~/php-ext/$(basename $ext_dir)/$ext_name
111112
112113
if [[ -e $ext_cache/$ext_so ]]; then
113114
echo extension = $ext_cache/$ext_so >> $INI
114115
else
115116
mkdir -p $ext_cache
116-
echo yes | pecl install -f $ext_name &&
117+
echo yes | pecl install -f $ext_name $etx_opt &&
117118
cp $ext_dir/$ext_so $ext_cache
118119
fi
119120
}
@@ -147,11 +148,16 @@ before_install:
147148
sudo apt-get update -q
148149
sudo apt-get install libsodium-dev -y
149150
151+
# install lib-zookeeper
152+
wget http://www-us.apache.org/dist/zookeeper/zookeeper-3.4.12/zookeeper-3.4.12.tar.gz | tar -zxf zookeeper-3.4.12.tar.gz
153+
154+
150155
tfold ext.apcu tpecl apcu-5.1.6 apcu.so $INI
151156
tfold ext.libsodium tpecl libsodium sodium.so $INI
152157
tfold ext.mongodb tpecl mongodb-1.5.0 mongodb.so $INI
153158
tfold ext.amqp tpecl amqp-1.9.3 amqp.so $INI
154159
tfold ext.igbinary tpecl igbinary-2.0.6 igbinary.so $INI
160+
tfold ext.zookeeper tpecl zookeeper-0.5.0 zookeeper.so $INI --with-libzookeeper-dir="zookeeper-3.4.12/src/c"
155161
fi
156162
157163
- |

0 commit comments

Comments
 (0)
0