-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
66 lines (53 loc) · 1.21 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
SHELL := bash
app = docker compose run --rm app
build:
@docker compose build --pull
@$(app) echo "Copying DIST Files (Overwrite Safe)" \
&& cp --no-clobber .env.example .env \
&& cp --no-clobber phpstan.dist.neon phpstan.neon \
&& cp --no-clobber phpunit.dist.xml phpunit.xml
$(app) mkdir --parents build
$(app) composer install
.PHONY: clean
clean:
@rm -rf ./build ./vendor
.PHONY: update
update: build
@$(app) composer update --with-all-dependencies
@$(app) composer bump
.PHONY: upgrade
upgrade: build
@$(app) composer require --dev --update-with-all-dependencies \
phpstan/phpstan \
phpunit/phpunit \
psy/psysh \
squizlabs/php_codesniffer \
slevomat/coding-standard \
rector/rector
@$(app) composer require --update-with-all-dependencies \
symfony/console
@$(app) app composer bump
.PHONY: bash
bash: build
@$(app) bash
.PHONY: phpunit
phpunit: build
@$(app) composer phpunit
.PHONY: psysh
psysh: build
@$(app) composer psysh
.PHONY: phpcs
phpcs: build
@$(app) composer phpcs
.PHONY: phpcbf
phpcbf: build
@$(app) composer phpcbf
.PHONY: phpstan
phpstan: build
@$(app) composer phpstan
.PHONY: rector
rector: build
@$(app) composer rector
.PHONY: ci
ci: build
@$(app) composer ci