PHPLIB-519: Test against upcoming driver versions

parent 58a499f8
......@@ -112,6 +112,18 @@ jobs:
env:
- DEPLOYMENT=SHARDED_CLUSTER_RS
# Test next patch release for driver
- stage: Test
php: "7.3"
env:
- DRIVER_BRANCH="v1.6"
# Test next minor release for driver
- stage: Test
php: "7.3"
env:
- DRIVER_BRANCH="master"
before_install:
- pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami`
- export SERVER_FILENAME=mongodb-linux-x86_64-${SERVER_DISTRO}-${SERVER_VERSION}
......
......@@ -16,7 +16,22 @@ tpecl () {
fi
}
if [ "x${DRIVER_VERSION}" != "x" ]; then
if [ "x${DRIVER_BRANCH}" != "x" ]; then
echo "Compiling driver branch ${DRIVER_BRANCH}"
mkdir -p /tmp/compile
git clone https://github.com/mongodb/mongo-php-driver /tmp/compile/mongo-php-driver
cd /tmp/compile/mongo-php-driver
git checkout ${DRIVER_BRANCH}
git submodule update --init
phpize
./configure --enable-mongodb-developer-flags
make all -j20 > /dev/null
make install
echo "extension=mongodb.so" >> `php --ini | grep "Scan for additional .ini files in" | sed -e "s|.*:\s*||"`/mongodb.ini
elif [ "x${DRIVER_VERSION}" != "x" ]; then
echo "Installing driver version ${DRIVER_VERSION} from PECL"
tpecl mongodb-${DRIVER_VERSION} mongodb.so
fi
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