-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 653 Bytes
/
Makefile
File metadata and controls
36 lines (24 loc) · 653 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
CONTAINER=systemctl-php-7.4
up:
docker-compose up -d
down:
docker-compose down
install:
docker exec -it $(CONTAINER) composer install
update:
docker exec -it $(CONTAINER) composer update
require:
docker exec -it $(CONTAINER) composer require $(filter-out $@, $(MAKECMDGOALS))
remove:
docker exec -it $(CONTAINER) composer remove $(filter-out $@, $(MAKECMDGOALS))
check: csfix cs phpunit analyse
phpunit:
docker exec -it $(CONTAINER) vendor/bin/phpunit
analyse:
docker exec -it $(CONTAINER) vendor/bin/phpstan analyse
cs:
docker exec -it $(CONTAINER) vendor/bin/phpcs
csfix:
docker exec -it $(CONTAINER) vendor/bin/phpcbf
%:
@true