Skip to content

Commit cf8b7b8

Browse files
committed
Call tpecl and parameterize extension name
1 parent 555742a commit cf8b7b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ before_install:
4949
- |
5050
# tpecl is a helper to compile and cache php extensions
5151
tpecl () {
52-
local ext_name=ext-mongodb
53-
local ext_so=mongodb.so
52+
local ext_name=$1
53+
local ext_so=$2
5454
local ext_dir=$(php -r "echo ini_get('extension_dir');")
5555
local ext_cache=~/php-ext/$(basename $ext_dir)/$ext_name
5656
if [[ -e $ext_cache/$ext_so ]]; then
@@ -66,7 +66,7 @@ before_install:
6666
before_script:
6767
- mongo-orchestration start
6868
- pushd ${MO_PATH} && ${TRAVIS_BUILD_DIR}/.travis/mo.sh configurations/servers/clean.json start && popd
69-
- pecl install -f mongodb-${DRIVER_VERSION}
69+
- tpecl mongodb-${DRIVER_VERSION} mongodb.so
7070
- php --ri mongodb
7171
- composer install --no-interaction --no-progress --no-suggest
7272
- ulimit -c

0 commit comments

Comments
 (0)