Skip to content

Commit 31c143a

Browse files
committed
Take set_extension_version function from matrix testing env
1 parent e44e98b commit 31c143a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.evergreen/run-tests.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,7 @@ PHP_IS_MATRIX_TESTING=${PHP_IS_MATRIX_TESTING:-false}
1717

1818
# For matrix testing, we have to determine the correct driver version
1919
if [ "$PHP_IS_MATRIX_TESTING" == "true" ]; then
20-
set_extension_version () {
21-
case $1 in
22-
'4.4')
23-
export DRIVER_VERSION='1.8.2'
24-
;;
25-
'4.2')
26-
export DRIVER_VERSION='1.6.1'
27-
;;
28-
'4.0')
29-
export DRIVER_VERSION='1.5.5'
30-
;;
31-
esac
32-
}
20+
eval "$PHP_SET_EXTENSION_VERSION"
3321

3422
set_extension_version "${DRIVER_MONGODB_VERSION}"
3523

0 commit comments

Comments
 (0)