1.EXPORT_ALL_VARIABLES: 2 3HTTP_HOST:=localhost:8080 4 5.PHONY: it 6it: coding-standards tests ## Runs all the targets 7 8.PHONY: code-coverage 9code-coverage: vendor ## Collects code coverage from running unit tests with phpunit/phpunit 10 vendor/bin/phpunit --configuration=tests/phpunit.xml --coverage-text --testsuite=unit 11 12.PHONY: coding-standards 13coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fixer 14 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --show-progress=dots --verbose 15 16.PHONY: help 17help: ## Displays this list of targets with descriptions 18 @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' 19 20.PHONY: tests 21tests: vendor ## Runs unit and end-to-end tests with phpunit/phpunit 22 vendor/bin/phpunit --configuration=tests/phpunit.xml --testsuite=unit 23 rm -rf tests/server.log 24 tests/server start; vendor/bin/phpunit --configuration=tests/phpunit.xml --testsuite=end-to-end; tests/server stop 25 26vendor: composer.json composer.lock 27 composer validate --strict 28 composer install --no-interaction --no-progress 29