-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CMSP-606] PHP 8.3 compatibility (#9)
* add a matrix to test multiple php versions php compat * revise lint script to run php and phpcs * set code style (lint) to run on matrix we're going to need to refactor the other tests to not use the terminus-plugin-test image so we can use different php versions...this is the first one. * use checkout v3 * if we're running tests on php 7.4, run a composer update * update terminus 3 tests for matrix * set the php version as an env variable * use the php version in the md name * update the CI test md name, too * echo the PHP version in the test * move the "editing" echo out of the subshell we don't want that in the ~/.ssh/config * install bats before running bats tests * add a note for our future selves * update the cleanup step * debug the failing test * add matrix to php unit tests * delete any un-deleted ci- environment * don't run unit tests on 7.4 the tests actually require php 8.x * bump dependencies * just be generally more verbose * fuzzy match with the PHP VERSION * attempt to debug the failing test (again) * this line doesn't do anything * note the version in the last echo ¯\_(ツ)_/¯ * export FS_TEST and CI_TEST so we can use them later * set FS_TEST_ENV and SITE_ENV based on FS_TEST and CI_TEST * remove debug * these aren't getting exported to the functional tests, so drop them * set the env names based on build_num and php_version * strip the period from the php version for cleanup * also strip the period out of the php version for tests
- Loading branch information
1 parent
c5658a0
commit 642cdac
Showing
8 changed files
with
146 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
PHP_VERSION=$(echo "$PHP_VERSION" | tr -d '.') | ||
# Nuke any lingering multidev environments from orbit. | ||
for ENV in $(terminus multidev:list --field=Name --format=list "$TERMINUS_SITE"); do | ||
if [[ "$ENV" == ci-"$BUILD_NUM" || "$ENV" == localtests || "$ENV" == fs-* ]]; then | ||
terminus multidev:delete --delete-branch --yes "${TERMINUS_SITE}"."${ENV}" | ||
if [[ "$ENV" =~ ^ci-.*-"$PHP_VERSION" || "$ENV" == localtests || "$ENV" =~ ^fs-.*-"$PHP_VERSION" ]]; then | ||
echo "Deleting $ENV." | ||
terminus multidev:delete --delete-branch --yes "${TERMINUS_SITE}"."${ENV}" | ||
fi | ||
done | ||
|
||
echo "✅ Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.