Skip to content

Commit caaea2b

Browse files
committed
Trying to disable automatic CI pipeline, which tries to use phpdbg for coverage
Trying to chase @lcobucci's work on Roave/BackwardCompatibilityCheck#741 See schema: * https://github.com/laminas/laminas-ci-matrix-action/blob/7f7976e6faf1ee8fcfca77cf0487cc4d0b486f11/laminas-ci.schema.json This commit should: * remove automatic infection pipeline entry * add infection run via `pcov` coverage driver Fixes: ``` Error: ] Project tests must be in a passing state before running Infection. Infection runs the test suite in a RANDOM order. Make sure your tests do not have hidden dependencies. You can add these attributes to `phpunit.xml` to check it: <phpunit executionOrder="random" resolveDependencies="true" ... If you don't want to let Infection run tests in a random order, set the `executionOrder` to some value, for example <phpunit executionOrder="default" Check the executed command to identify the problem: '/usr/bin/phpdbg8.2' '-qrr' '/github/workspace/vendor/bin/phpunit' '--configuration' '/tmp/infection/phpunitConfiguration.initial.infection.xml' '--coverage-xml=/tmp/infection/coverage-xml' '--log-junit=/tmp/infection/junit.xml' PHPUnit reported an exit code of 1. ```
1 parent d0afc9e commit caaea2b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.laminas-ci.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extensions": [
3+
"bcmath",
4+
"pcov"
5+
],
6+
"ini": [
7+
"memory_limit=-1"
8+
],
9+
"exclude": [
10+
{"name": "Infection [8.2, locked]"}
11+
],
12+
"additional_checks": [
13+
{
14+
"name": "Infection (with PCOV)",
15+
"job": {
16+
"php": "8.4",
17+
"dependencies": "locked",
18+
"command": "./vendor/bin/roave-infection-static-analysis-plugin"
19+
}
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)