File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,18 @@ jobs:
112112 env :
113113 - DEPLOYMENT=SHARDED_CLUSTER_RS
114114
115+ # Test next patch release for driver
116+ - stage : Test
117+ php : " 7.3"
118+ env :
119+ - DRIVER_BRANCH="v1.6"
120+
121+ # Test next minor release for driver
122+ - stage : Test
123+ php : " 7.3"
124+ env :
125+ - DRIVER_BRANCH="master"
126+
115127before_install :
116128 - pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami`
117129 - export SERVER_FILENAME=mongodb-linux-x86_64-${SERVER_DISTRO}-${SERVER_VERSION}
Original file line number Diff line number Diff line change @@ -16,7 +16,22 @@ tpecl () {
1616 fi
1717}
1818
19- if [ " x${DRIVER_VERSION} " != " x" ]; then
19+ if [ " x${DRIVER_BRANCH} " != " x" ]; then
20+ echo " Compiling driver branch ${DRIVER_BRANCH} "
21+
22+ mkdir -p /tmp/compile
23+ git clone https://github.com/mongodb/mongo-php-driver /tmp/compile/mongo-php-driver
24+ cd /tmp/compile/mongo-php-driver
25+
26+ git checkout ${DRIVER_BRANCH}
27+ git submodule update --init
28+ phpize
29+ ./configure --enable-mongodb-developer-flags
30+ make all -j20 > /dev/null
31+ make install
32+
33+ echo " extension=mongodb.so" >> ` php --ini | grep " Scan for additional .ini files in" | sed -e " s|.*:\s*||" ` /mongodb.ini
34+ elif [ " x${DRIVER_VERSION} " != " x" ]; then
2035 echo " Installing driver version ${DRIVER_VERSION} from PECL"
2136 tpecl mongodb-${DRIVER_VERSION} mongodb.so
2237fi
You can’t perform that action at this time.
0 commit comments