1
0
mirror of synced 2024-11-29 06:26:01 +03:00
mg-bot-api-client-php/Makefile

19 lines
469 B
Makefile
Raw Normal View History

2019-06-10 16:24:22 +03:00
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)
2019-06-19 12:03:37 +03:00
@cp .env.dist .env
2019-06-28 09:44:07 +03:00
@php -d memory_limit=-1 $(BIN_DIR)/phpunit -c phpunit.xml.dist
2019-06-10 16:24:22 +03:00
@echo "==> Testing complete"
stan:
@echo "==> Running analysis"
2019-06-28 14:00:19 +03:00
@php $(BIN_DIR)/phpstan analyse -a $(ROOT_DIR)/extra/autoloader.php -l 4 src
2019-06-21 16:42:04 +03:00
@echo "==> Analysis complete"
travis: test stan
2019-06-28 09:44:07 +03:00
@echo "==> Completed"