1
0
mirror of synced 2024-12-03 16:26:02 +03:00
mg-bot-api-client-php/Makefile
2023-08-10 18:40:29 +03:00

17 lines
367 B
Makefile

ifneq ("$(wildcard docker-compose.yml)","")
PHP=docker-compose run --rm --no-deps php php
else
PHP=php
endif
test:
@echo "==> Running tests"
@cp .env.dist .env
@$(PHP) -d memory_limit=-1 vendor/bin/phpunit -c phpunit.xml.dist
@echo "==> Testing complete"
stan:
@echo "==> Running analysis"
@$(PHP) vendor/bin/phpstan analyse
@echo "==> Analysis complete"