Allow customizing the driver repository for travis-ci

parent 7b084d30
...@@ -16,14 +16,17 @@ tpecl () { ...@@ -16,14 +16,17 @@ tpecl () {
fi fi
} }
if [ "x${DRIVER_BRANCH}" != "x" ]; then if [ "x${DRIVER_BRANCH}" != "x" ] || [ "x${DRIVER_REPO}" != "x" ]; then
echo "Compiling driver branch ${DRIVER_BRANCH}" CLONE_REPO=${DRIVER_REPO:-https://github.com/mongodb/mongo-php-driver}
CHECKOUT_BRANCH=${DRIVER_BRANCH:-master}
echo "Compiling driver branch ${CHECKOUT_BRANCH} from repository ${CLONE_REPO}"
mkdir -p /tmp/compile mkdir -p /tmp/compile
git clone https://github.com/mongodb/mongo-php-driver /tmp/compile/mongo-php-driver git clone ${CLONE_REPO} /tmp/compile/mongo-php-driver
cd /tmp/compile/mongo-php-driver cd /tmp/compile/mongo-php-driver
git checkout ${DRIVER_BRANCH} git checkout ${CHECKOUT_BRANCH}
git submodule update --init git submodule update --init
phpize phpize
./configure --enable-mongodb-developer-flags ./configure --enable-mongodb-developer-flags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment