package-template/Makefile

33 lines
676 B
Makefile
Raw Permalink Normal View History

2024-07-29 17:45:50 +02:00
service_name := composer-package-dev
compose_file := ./docker/docker-compose.yaml
2024-07-29 20:45:21 +02:00
compose_command := PUID=$(shell id -u) PGID=$(shell id -g) docker-compose -f $(compose_file)
2024-07-29 17:45:50 +02:00
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