Makefile
CONTAINER=systemctl-php-7.4
up:
docker-compose up -d
down:
docker-compose down
install:
docker exec -it $(CONTAINER) composer install
update:
docker exec -it $(CONTAINER) composer update
require:
docker exec -it $(CONTAINER) composer require $(filter-out $@, $(MAKECMDGOALS))
remove:
docker exec -it $(CONTAINER) composer remove $(filter-out $@, $(MAKECMDGOALS))
check: csfix cs phpunit analyse
phpunit:
docker exec -it $(CONTAINER) vendor/bin/phpunit
analyse:
docker exec -it $(CONTAINER) vendor/bin/phpstan analyse
cs:
docker exec -it $(CONTAINER) vendor/bin/phpcs
csfix:
docker exec -it $(CONTAINER) vendor/bin/phpcbf
%:
@true