From acb1ccebe821e9fdaac4c4980a2c7cd7b39b5a0c Mon Sep 17 00:00:00 2001 From: Bastian Schwarz Date: Sun, 7 Jan 2024 00:13:56 +0100 Subject: [PATCH] Added php version check for infection --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7aa3a3f..36a287e 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "psalm": "XDEBUG_MODE=off tools/psalm --threads=10 --long-progress", "composer-unused": "XDEBUG_MODE=off tools/composer-unused --no-progress --no-interaction", "composer-require-checker": "php -r 'exit((int) !(PHP_VERSION_ID >= 80400));' && XDEBUG_MODE=off tools/composer-require-checker --no-interaction || echo 'Skipping composer-require-checker because it needs PHP8.2 or higher'", - "infection": "XDEBUG_MODE=coverage tools/infection --min-msi=100 --min-covered-msi=100 --threads=4 --no-progress --show-mutations", + "infection": "php -r 'exit((int) !(PHP_VERSION_ID >= 80100));' && XDEBUG_MODE=coverage tools/infection --min-msi=100 --min-covered-msi=100 --threads=4 --no-progress --show-mutations || echo 'Skipping infection because it needs PHP8.1 or higher'", "phive:update": "XDEBUG_MODE=off phive update && git add tools/* phive.xml && git commit tools/* -m 'Updated phive dependencies'", "ci-all": [ "composer validate",