-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.25 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.25 KB
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
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 \
"php-parallel-lint/php-parallel-lint" \
"phpstan/extension-installer" \
"phpstan/phpstan" \
"phpstan/phpstan-phpunit" \
"phpunit/phpunit" \
"psy/psysh" \
"rector/rector" \
"wickedbyte/coding-standard"
@$(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