forked from schmittjoh/JMSJobQueueBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (33 loc) · 898 Bytes
/
Makefile
File metadata and controls
38 lines (33 loc) · 898 Bytes
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
34
35
36
37
38
ifneq (,)
$(error This Makefile requires GNU Make. )
endif
.DEFAULT_GOAL := sami
DOCKER_UID := $(shell id -u)
DOCKER_GID := $(shell id -g)
CURRENT_DIR := $(shell pwd)
PROJECT_NAME := "jms_job_queue_bundle"
.PHONY : sami
sami:
@docker build --tag=$(PROJECT_NAME)_docs_gen .
@docker run --rm -u `id -u`:`id -g` -v `pwd`:/build $(PROJECT_NAME)_docs_gen:latest update .sami.config.php
fix:
@if docker run --rm \
-v $(CURRENT_DIR):/data \
cytopia/php-cs-fixer:latest \
fix src; then \
echo "OK"; \
else \
echo "Failed! Execute PHP code style fixer to fix this error."; \
exit 1; \
fi
fix-diff:
@ echo "Run PHP codestyle fixer and compare to source..."
@if docker run --rm \
-v $(CURRENT_DIR):/data \
cytopia/php-cs-fixer:latest \
fix --dry-run --diff src; then \
echo "OK"; \
else \
echo "Failed! Execute PHP code style fixer to fix this error."; \
exit 1; \
fi