1
0
mirror of synced 2024-11-22 03:46:02 +03:00
mg-bot-api-client-php/Makefile
2019-06-10 16:24:22 +03:00

20 lines
633 B
Makefile

ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SRC_DIR=$(ROOT_DIR)/src
BIN_DIR=$(ROOT_DIR)/bin
deps:
@echo "==> Installing dependencies"
@curl -L https://getcomposer.org/composer.phar -o $(BIN_DIR)/composer
@COMPOSER_HOME=/tmp php -d memory_limit=-1 $(BIN_DIR)/composer install
test:
@echo "==> Running tests"
@cd $(ROOT_DIR)
@php -d memory_limit=-1 $(BIN_DIR)/phpunit -c phpunit.xml.dist --log-junit $(ROOT_DIR)/test-report.xml
@echo "==> Testing complete"
stan:
@echo "==> Running analysis"
@php $(BIN_DIR)/phpstan analyse -l 4 -c $(ROOT_DIR)/phpstan.neon $(SRC_DIR)
@echo "==> Analysis complete"