Skip to content

Commit 794bde5

Browse files
authored
PHPLIB-1098: Test on supported platforms (#1124)
1 parent 31a8d3b commit 794bde5

File tree

1 file changed

+38
-18
lines changed

1 file changed

+38
-18
lines changed

.evergreen/config.yml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ functions:
175175
params:
176176
script: |
177177
${PREPARE_SHELL}
178-
MONGODB_VERSION=${MONGODB_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
178+
SKIP_LEGACY_SHELL=true MONGODB_VERSION=${MONGODB_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
179179
# run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
180180
- command: expansions.update
181181
params:
@@ -773,27 +773,35 @@ axes:
773773
- id: os
774774
display_name: OS
775775
values:
776+
# Debian
776777
- id: debian11
777778
display_name: "Debian 11"
778-
run_on: debian11
779+
run_on: debian11-small
779780
- id: debian10
780781
display_name: "Debian 10"
781-
run_on: debian10
782+
run_on: debian10-small
782783
- id: debian92
783784
display_name: "Debian 9.2"
784-
run_on: debian92
785-
- id: rhel70
786-
display_name: "RHEL 7.0"
787-
run_on: rhel70
788-
- id: rhel71-power8
789-
display_name: "RHEL 7.1 Power 8"
790-
run_on: rhel71-power8-build
791-
- id: rhel72-zseries
792-
display_name: "RHEL 7.2 zSeries"
793-
run_on: rhel72-zseries-build
794-
- id: ubuntu1804-arm64
795-
display_name: "Ubuntu 18.04 ARM64"
796-
run_on: ubuntu1804-arm64-test
785+
run_on: debian92-small
786+
787+
# RHEL
788+
- id: rhel90
789+
display_name: "RHEL 9.0"
790+
run_on: rhel90-small
791+
792+
# Ubuntu LTS
793+
- id: ubuntu2204
794+
display_name: "Ubuntu 22.04 x64"
795+
run_on: ubuntu2204-small
796+
- id: ubuntu2204-arm64
797+
display_name: "Ubuntu 22.04 ARM64"
798+
run_on: ubuntu2204-arm64-small
799+
- id: ubuntu2004
800+
display_name: "Ubuntu 20.04 x64"
801+
run_on: ubuntu2004-small
802+
- id: ubuntu2004-arm64
803+
display_name: "Ubuntu 20.04 ARM64"
804+
run_on: ubuntu2204-arm64-small
797805

798806
- id: topology
799807
display_name: Topology
@@ -860,13 +868,25 @@ axes:
860868
DEPENDENCIES: "lowest"
861869

862870
buildvariants:
863-
# Test all PHP versions with latest-stable MongoDB and PHPC on Debian
871+
# Test all PHP versions with latest-stable MongoDB and PHPC on all platforms
864872
- matrix_name: "test-php-versions"
865-
matrix_spec: { "os": "debian11", "mongodb-edge-versions": "latest-stable", "php-versions": "*", "driver-versions": "latest-stable" }
873+
matrix_spec:
874+
os:
875+
- debian11
876+
- debian10
877+
- rhel90
878+
- ubuntu2204
879+
- ubuntu2204-arm64
880+
- ubuntu2004
881+
mongodb-edge-versions: "latest-stable"
882+
php-versions: "*"
883+
driver-versions: "latest-stable"
866884
display_name: "${os}, ${mongodb-edge-versions}, ${php-versions}, ${driver-versions}"
867885
exclude_spec:
868886
# Exclude "latest-stable" PHP version for Debian 11 (see: test-mongodb-versions matrix)
869887
- { "os": "debian11", "mongodb-edge-versions": "latest-stable", "php-versions": "8.2", "driver-versions": "latest-stable" }
888+
# Exclude PHP versions older than 8.1 on RHEL 9 and Ubuntu 22.04 (OpenSSL 3 is only supported on PHP 8.1+)
889+
- { "os": ["rhel90", "ubuntu2204-arm64", "ubuntu2204"], "php-versions": ["7.2", "7.3", "7.4", "8.0"], "mongodb-edge-versions": "*", "driver-versions": "*" }
870890
tasks:
871891
- name: "test-standalone"
872892
- name: "test-replica_set"

0 commit comments

Comments
 (0)