1
0
mirror of synced 2024-11-24 20:56:03 +03:00
mg-bot-api-client-php/Makefile
2019-06-28 14:00:19 +03:00

19 lines
469 B
Makefile

ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SRC_DIR=$(ROOT_DIR)/src
BIN_DIR=$(ROOT_DIR)/bin
test:
@echo "==> Running tests"
@cd $(ROOT_DIR)
@cp .env.dist .env
@php -d memory_limit=-1 $(BIN_DIR)/phpunit -c phpunit.xml.dist
@echo "==> Testing complete"
stan:
@echo "==> Running analysis"
@php $(BIN_DIR)/phpstan analyse -a $(ROOT_DIR)/extra/autoloader.php -l 4 src
@echo "==> Analysis complete"
travis: test stan
@echo "==> Completed"