Skip to content

Commit baf6bbd

Browse files
committed
Add Infection testing tool to local ci
1 parent deb3d9a commit baf6bbd

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ composer.lock
77
.phpunit.result.cache
88
.php-cs-fixer.cache
99
.phpbench/
10+
coverage/
1011

1112
# script-templates
1213
## Ignore all subdirectories under scripts (script-template folders)

scripts/ci.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ if [ ! -f "tools/phpstan.phar" ]; then
3131
wget https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar -O tools/phpstan.phar
3232
chmod +x tools/phpstan.phar
3333
fi
34+
35+
if [ ! -f "tools/infection.phar" ]; then
36+
wget https://github.com/infection/infection/releases/latest/download/infection.phar -O tools/infection.phar
37+
chmod +x tools/infection.phar
38+
fi
3439
# </editor-fold>
3540

3641
composer update --no-interaction --no-progress --ansi
@@ -39,9 +44,8 @@ composer validate --no-ansi --strict composer.json
3944
php tools/composer-normalize.phar --dry-run
4045
php tools/composer-require-checker.phar check
4146
PHP_CS_FIXER_IGNORE_ENV=1 php tools/php-cs-fixer.phar fix --dry-run --show-progress=dots --using-cache=no --verbose
42-
4347
php tools/phpstan.phar analyse --memory-limit=512M --ansi --no-progress --error-format=table
44-
4548
vendor/bin/phpunit
49+
php tools/infection.phar --min-msi=58 --min-covered-msi=69 --threads=4
4650

4751
popd >/dev/null

0 commit comments

Comments
 (0)