Move tests docker configuration

Because we want to unify tests environment in the premium plugin. This step should allow us to reuse it easier.
[PREMIUM-230]
This commit is contained in:
Jan Lysý
2024-07-23 16:41:24 +02:00
committed by alex-mpoet
parent 6805d68ede
commit 22584747a0
8 changed files with 34 additions and 33 deletions

View File

@@ -65,7 +65,7 @@ function getLatestAndPreviousVersions(array $sortedVersions): array {
*/
function replaceLatestWordPressVersion(string $latestVersion): void {
replaceVersionInFile(
__DIR__ . './../../../mailpoet/tests/docker/docker-compose.yml',
__DIR__ . './../../../tests_env/docker/docker-compose.yml',
'/(wordpress:\${WORDPRESS_IMAGE_VERSION:-\s*)\d+\.\d+\.?\d*-php\d+\.\d+(})/',
'${1}' . $latestVersion . '${2}'
);