11SHELL = /bin/sh
22
33DOCKER = $(shell which docker)
4- PHP_VER := 7.2
4+ PHP_VER := 7.4
55IMAGE := graze/php-alpine:${PHP_VER}-test
66VOLUME := /srv
77DOCKER_RUN_BASE := ${DOCKER} run --rm -t -v $$(pwd ) :${VOLUME} -w ${VOLUME}
@@ -41,10 +41,10 @@ test: ## Run the unit and integration testsuites.
4141test : lint test-unit
4242
4343lint : # # Run phpcs against the code.
44- ${DOCKER_RUN} vendor/bin/phpcs -p --warning-severity=0 src/ tests/
44+ ${DOCKER_RUN} vendor/bin/phpcs --standard=./phpcs.xml.dist - p --warning-severity=0 src/ tests/
4545
4646lint-fix : # # Run phpcsf and fix possible lint errors.
47- ${DOCKER_RUN} vendor/bin/phpcbf -p src/ tests/
47+ ${DOCKER_RUN} vendor/bin/phpcbf --standard=./phpcs.xml.dist - p src/ tests/
4848
4949test-unit : # # Run the unit testsuite.
5050 ${DOCKER_RUN} vendor/bin/phpunit --testsuite unit
@@ -58,10 +58,13 @@ test-matrix-lowest: ## Test all version, with the lowest version
5858 ${MAKE} build-update
5959
6060test-matrix : # # Run the unit tests against multiple targets.
61- ${MAKE} PHP_VER=" 5.6" build-update test
62- ${MAKE} PHP_VER=" 7.0" build-update test
63- ${MAKE} PHP_VER=" 7.1" build-update test
64- ${MAKE} PHP_VER=" 7.2" build-update test
61+ ${MAKE} PHP_VER=" 7.4" build-update test
62+ ${MAKE} PHP_VER=" 8.0" build-update test
63+ ${MAKE} PHP_VER=" 8.1" build-update test
64+ ${MAKE} PHP_VER=" 8.2" build-update test
65+ ${MAKE} PHP_VER=" 8.3" build-update test
66+ ${MAKE} PHP_VER=" 8.4" build-update test
67+ ${MAKE} PHP_VER=" 8.5" build-update test
6568
6669test-coverage : # # Run all tests and output coverage to the console.
6770 ${DOCKER_RUN} phpdbg7 -qrr vendor/bin/phpunit --coverage-text
0 commit comments