Skip to content

Commit 0197960

Browse files
committed
PHPLIB-1098: Test on supported platforms
1 parent b8af536 commit 0197960

File tree

1 file changed

+56
-19
lines changed

1 file changed

+56
-19
lines changed

.evergreen/config.yml

Lines changed: 56 additions & 19 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,45 @@ 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+
# TODO: RHEL 8.x is not working yet
792+
# - id: rhel82-arm64
793+
# display_name: "RHEL 8.2 ARM64"
794+
# run_on: rhel82-arm64-small
795+
# - id: rhel80
796+
# display_name: "RHEL 8.0"
797+
# run_on: rhel80-small
798+
- id: rhel76
799+
display_name: "RHEL 7.6"
800+
run_on: rhel76-small
801+
802+
# Ubuntu LTS
803+
- id: ubuntu2204
804+
display_name: "Ubuntu 22.04 x64"
805+
run_on: ubuntu2204-small
806+
- id: ubuntu2204-arm64
807+
display_name: "Ubuntu 22.04 ARM64"
808+
run_on: ubuntu2204-arm64-small
809+
- id: ubuntu2004
810+
display_name: "Ubuntu 20.04 x64"
811+
run_on: ubuntu2004-small
812+
- id: ubuntu2004-arm64
813+
display_name: "Ubuntu 20.04 ARM64"
814+
run_on: ubuntu2204-arm64-small
797815

798816
- id: topology
799817
display_name: Topology
@@ -860,19 +878,38 @@ axes:
860878
DEPENDENCIES: "lowest"
861879

862880
buildvariants:
863-
# Test all PHP versions with latest-stable MongoDB and PHPC on Debian
881+
# Test all PHP versions with latest-stable MongoDB and PHPC, RHEL, and Ubuntu
864882
- matrix_name: "test-php-versions"
865-
matrix_spec: { "os": "debian11", "mongodb-edge-versions": "latest-stable", "php-versions": "*", "driver-versions": "latest-stable" }
883+
matrix_spec:
884+
os:
885+
- debian11
886+
- debian10
887+
- rhel90
888+
# TODO: RHEL 8.x is not working yet
889+
# - rhel82-arm64
890+
# - rhel80
891+
# TODO: RHEL 7.6 fails as it's not able to connect to pecl.php.net to install the library
892+
# - rhel76
893+
- ubuntu2204
894+
- ubuntu2204-arm64
895+
# TODO: KMS servers fail to start on Ubuntu 20.04
896+
# - ubuntu2004
897+
# - ubuntu2004-arm64
898+
mongodb-edge-versions: "latest-stable"
899+
php-versions: "*"
900+
driver-versions: "latest-stable"
866901
display_name: "${os}, ${mongodb-edge-versions}, ${php-versions}, ${driver-versions}"
867902
exclude_spec:
868903
# Exclude "latest-stable" PHP version for Debian 11 (see: test-mongodb-versions matrix)
869904
- { "os": "debian11", "mongodb-edge-versions": "latest-stable", "php-versions": "8.2", "driver-versions": "latest-stable" }
905+
# Exclude PHP versions older than 8.1 on RHEL 9 and Ubuntu 22.04 (OpenSSL 3 is only supported on PHP 8.1+)
906+
- { "os": ["rhel90", "ubuntu2204-arm64", "ubuntu2204"], "php-versions": ["7.2", "7.3", "7.4", "8.0"], "mongodb-edge-versions": "*", "driver-versions": "*" }
870907
tasks:
871908
- name: "test-standalone"
872909
- name: "test-replica_set"
873910
- name: "test-sharded_cluster"
874911

875-
# Test all topologies and MongoDB versions with latest-stable PHP and PHPC on Debian
912+
# Test all topologies and MongoDB versions with latest-stable PHP and PHPC on Debian 11
876913
- matrix_name: "test-mongodb-versions"
877914
matrix_spec: { "os": ["debian92", "debian11"], "mongodb-versions": "*", "php-edge-versions": "latest-stable", "driver-versions": "latest-stable" }
878915
display_name: "${os}, ${mongodb-versions}, ${php-edge-versions}, ${driver-versions}"

0 commit comments

Comments
 (0)