2024-07-29 17:45:50 +02:00
|
|
|
service_name := composer-package-dev
|
|
|
|
compose_file := ./docker/docker-compose.yaml
|
|
|
|
compose_command := PUID=${UID} PGID=${GID} docker-compose -f $(compose_file)
|
|
|
|
compose_run := $(compose_command) run --rm $(service_name)
|
|
|
|
|
|
|
|
build:
|
|
|
|
@$(compose_command) build
|
2024-07-26 18:30:00 +02:00
|
|
|
|
2024-07-27 01:36:31 +02:00
|
|
|
install:
|
2024-07-29 17:45:50 +02:00
|
|
|
@make build
|
|
|
|
@$(compose_run) composer install
|
2024-07-27 01:36:31 +02:00
|
|
|
|
|
|
|
prune:
|
2024-07-29 17:45:50 +02:00
|
|
|
@$(compose_command) rm -fsv
|
|
|
|
|
|
|
|
exec-shell:
|
|
|
|
@$(compose_run) sh
|
2024-07-27 01:36:31 +02:00
|
|
|
|
2024-07-25 21:10:23 +02:00
|
|
|
code-style-fix:
|
2024-07-29 17:45:50 +02:00
|
|
|
@$(compose_run) composer code-style-fix
|
2024-07-25 21:10:23 +02:00
|
|
|
|
|
|
|
code-style-check:
|
2024-07-29 17:45:50 +02:00
|
|
|
@$(compose_run) composer code-style-check
|
2024-07-25 21:10:23 +02:00
|
|
|
|
|
|
|
analyze-code:
|
2024-07-29 17:45:50 +02:00
|
|
|
@$(compose_run) composer analyze-code
|
2024-07-25 21:10:23 +02:00
|
|
|
|
|
|
|
run-unit-tests:
|
2024-07-29 17:45:50 +02:00
|
|
|
@$(compose_run) composer run-unit-tests
|
2024-07-25 21:10:23 +02:00
|
|
|
|
|
|
|
full-test:
|
2024-07-29 17:45:50 +02:00
|
|
|
@$(compose_run) composer full-test
|