-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (22 loc) · 990 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
default: help
run_docker=docker run -v $(shell pwd):/app -w /app --rm -it guzzle-escher-middleware
.PHONY: help install update sh check check-native test test-native
help: ## This help message
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' -e 's/:.*#/: #/' | column -t -s '##'
build-docker-image:
docker build -t guzzle-escher-middleware .
install: ## Install dependencies with Composer
@$(MAKE) build-docker-image
@$(run_docker) composer install
update: ## Update dependencies with Composer
@$(run_docker) composer update
sh: ## Open a shell in the container
@$(run_docker) /bin/sh
check: ## Run PHP Insights
@$(run_docker) ./vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=2G
check-native: ## Run PHP Insights without Docker
./vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=2G
test: ## Run tests
@$(run_docker) ./vendor/bin/phpunit -c phpunit.xml
test-native: ## Run tests without Docker
./vendor/bin/phpunit -c phpunit.xml