From fe26adc2f06e74a60bbb715e773abeb5941fc313 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 22 Feb 2023 11:37:11 +0100 Subject: [PATCH] Switch from PHPDBG to just "PHP" for coverage and mutation tests This change is needed for https://github.com/laminas/laminas-continuous-integration-action/pull/148 Ref: https://github.com/laminas/laminas-continuous-integration-action/issues/130 Ref: https://github.com/sebastianbergmann/php-code-coverage/issues/945 Ref: https://github.com/sebastianbergmann/php-code-coverage/commit/c304be7d8aa00a71cf8fe763a4b92e14d3f67f4d --- src/tools.ts | 4 ++-- tests/code-check-infection-dist/matrix.json | 2 +- tests/code-check-infection-nodist/matrix.json | 2 +- .../matrix.json | 2 +- .../matrix.json | 2 +- tests/code-check-locked-dependencies/matrix.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tools.ts b/src/tools.ts index 835a476e..583b3086 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -35,10 +35,10 @@ function detectInfectionCommand(): string { const composerJson: ComposerJson = parseJsonFile('composer.json', true) as ComposerJson; if (composerJson['require-dev']?.['roave/infection-static-analysis-plugin'] !== undefined) { - return 'phpdbg -qrr ./vendor/bin/roave-infection-static-analysis-plugin'; + return './vendor/bin/roave-infection-static-analysis-plugin'; } - return 'phpdbg -qrr ./vendor/bin/infection'; + return './vendor/bin/infection'; } export default function createTools(config: Config): Array { diff --git a/tests/code-check-infection-dist/matrix.json b/tests/code-check-infection-dist/matrix.json index 9fd73f31..174df81a 100644 --- a/tests/code-check-infection-dist/matrix.json +++ b/tests/code-check-infection-dist/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Infection [7.4, latest]", - "job": "{\"command\":\"phpdbg -qrr ./vendor/bin/infection\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/infection\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/code-check-infection-nodist/matrix.json b/tests/code-check-infection-nodist/matrix.json index 9fd73f31..174df81a 100644 --- a/tests/code-check-infection-nodist/matrix.json +++ b/tests/code-check-infection-nodist/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Infection [7.4, latest]", - "job": "{\"command\":\"phpdbg -qrr ./vendor/bin/infection\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/infection\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/code-check-infection-roave-static-analysis-plugin-dist/matrix.json b/tests/code-check-infection-roave-static-analysis-plugin-dist/matrix.json index 1d487276..626bc0d5 100644 --- a/tests/code-check-infection-roave-static-analysis-plugin-dist/matrix.json +++ b/tests/code-check-infection-roave-static-analysis-plugin-dist/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Infection [8.1, latest]", - "job": "{\"command\":\"phpdbg -qrr ./vendor/bin/roave-infection-static-analysis-plugin\",\"php\":\"8.1\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/roave-infection-static-analysis-plugin\",\"php\":\"8.1\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/code-check-infection-roave-static-analysis-plugin-nodist/matrix.json b/tests/code-check-infection-roave-static-analysis-plugin-nodist/matrix.json index 1d487276..626bc0d5 100644 --- a/tests/code-check-infection-roave-static-analysis-plugin-nodist/matrix.json +++ b/tests/code-check-infection-roave-static-analysis-plugin-nodist/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Infection [8.1, latest]", - "job": "{\"command\":\"phpdbg -qrr ./vendor/bin/roave-infection-static-analysis-plugin\",\"php\":\"8.1\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/roave-infection-static-analysis-plugin\",\"php\":\"8.1\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/code-check-locked-dependencies/matrix.json b/tests/code-check-locked-dependencies/matrix.json index 443b0752..674421db 100644 --- a/tests/code-check-locked-dependencies/matrix.json +++ b/tests/code-check-locked-dependencies/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Infection [7.4, locked]", - "job": "{\"command\":\"phpdbg -qrr ./vendor/bin/infection\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"locked\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/infection\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"locked\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" }