File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,17 @@ tpecl () {
16
16
fi
17
17
}
18
18
19
- if [ " x${DRIVER_BRANCH} " != " x" ]; then
20
- echo " Compiling driver branch ${DRIVER_BRANCH} "
19
+ if [ " x${DRIVER_BRANCH} " != " x" ] || [ " x${DRIVER_REPO} " != " x" ]; then
20
+ CLONE_REPO=${DRIVER_REPO:- https:// github.com/ mongodb/ mongo-php-driver}
21
+ CHECKOUT_BRANCH=${DRIVER_BRANCH:- master}
22
+
23
+ echo " Compiling driver branch ${CHECKOUT_BRANCH} from repository ${CLONE_REPO} "
21
24
22
25
mkdir -p /tmp/compile
23
- git clone https://github.com/mongodb/mongo-php-driver /tmp/compile/mongo-php-driver
26
+ git clone ${CLONE_REPO} /tmp/compile/mongo-php-driver
24
27
cd /tmp/compile/mongo-php-driver
25
28
26
- git checkout ${DRIVER_BRANCH }
29
+ git checkout ${CHECKOUT_BRANCH }
27
30
git submodule update --init
28
31
phpize
29
32
./configure --enable-mongodb-developer-flags
You can’t perform that action at this time.
0 commit comments