configuring infection

This commit is contained in:
Your Name
2024-10-19 18:49:51 +03:00
parent 06bdf2c9c2
commit 47dac3fa50
2 changed files with 24 additions and 0 deletions

View File

@@ -2,6 +2,11 @@ ARG PHP_VERSION=8.3
FROM rosven9856/php:$PHP_VERSION
RUN apk add --update --no-cache --virtual .build-deps ${PHPIZE_DEPS} \
&& pecl install pcov \
&& docker-php-ext-enable pcov \
&& apk del .build-deps
RUN addgroup -g 1000 --system php
RUN adduser -G php --system -D -s /bin/sh -u 1000 php

19
infection.json5.dist Normal file
View File

@@ -0,0 +1,19 @@
{
"$schema": "vendor/infection/infection/resources/schema.json",
"source": {
"directories": [
"src"
]
},
"logs": {
"text": "var/infection.log",
"stryker": {
"report": "/^\\d+\\.\\d+\\.x$/"
},
},
"tmpDir": "var",
"minCoveredMsi": 20,
"mutators": {
"@default": true
}
}