-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PHP 8.1 and PHP 8.2 test support (#87)
* Make doctrine/annotations hard dependency Doctrine bundle did make annotations optional dependency due to transitioning to attributes * Update BundleInitializationTest.php * Update BreadcrumbListenerTest.php * Update BreadcrumbTrailExtensionTest.php * Upgrade Nyholm test bundle to 2.x * Drop Symfony 3.4 support Add Symfony 6.x support Add PHP 8.1 and 8.2 test coverage * Only test PHP <8.1 on `test-lowest` * Fix running CI, as jakzal latest does not have php-cs-fixer yet * Fix tests Co-authored-by: Richard van Laak <[email protected]>
- Loading branch information
Showing
10 changed files
with
106 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,47 @@ | ||
DIR := ${CURDIR} | ||
|
||
test-php72: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 $(MAKE) test | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 make test | ||
|
||
test-php73: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.3 $(MAKE) test | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.3 make test | ||
|
||
test-php74: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.4 $(MAKE) test | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.4 make test | ||
|
||
test-php80: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:8.0 make test | ||
|
||
test-php81: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:8.1 make test | ||
|
||
test-php82: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:8.2 make test | ||
|
||
test: | ||
composer update --prefer-dist --no-interaction ${COMPOSER_PARAMS} | ||
composer test | ||
|
||
test-lowest: | ||
COMPOSER_PARAMS='--prefer-lowest' $(MAKE) test | ||
COMPOSER_PARAMS='--prefer-lowest' make test | ||
|
||
test-php72-lowest: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 $(MAKE) test-lowest | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 make test-lowest | ||
|
||
test-php73-lowest: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.3 $(MAKE) test-lowest | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.3 make test-lowest | ||
|
||
test-php74-lowest: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.4 $(MAKE) test-lowest | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.4 make test-lowest | ||
|
||
cs: | ||
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa php-cs-fixer fix -vv ${CS_PARAMS} | ||
cs: composer.lock | ||
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa:php8.1 php-cs-fixer fix -vv ${CS_PARAMS} | ||
|
||
test-cs: | ||
CS_PARAMS='--dry-run' $(MAKE) cs | ||
test-cs: composer.lock | ||
CS_PARAMS='--dry-run' make cs | ||
|
||
static: | ||
static: composer.lock | ||
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa phpstan analyze -c .phpstan.neon | ||
|
||
composer: | ||
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 composer install | ||
composer.lock: | ||
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa composer install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters