-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 1005 Bytes
/
Makefile
File metadata and controls
44 lines (36 loc) · 1005 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
39
40
41
42
43
44
SHELL := bash
app = docker compose run --rm app
build:
@docker compose build --pull
@$(app) composer install
@cp phpstan.dist.neon phpstan.neon
@cp phpunit.dist.xml phpunit.xml
@$(app) mkdir -p build
.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: lint phpcbf phpcs phpstan phpunit rector rector-dry-run
lint phpcbf phpcs phpstan phpunit rector rector-dry-run:
docker compose run --rm --user=$$(id -u):$$(id -g) app composer run-script "$@"
.NOTPARALLEL: ci
.PHONY: ci
ci: lint phpcs phpstan rector-dry-run phpunit