1
0
mirror of synced 2024-11-25 13:16:01 +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"