generated from chicory/package-template
33 lines
676 B
Makefile
33 lines
676 B
Makefile
|
service_name := composer-package-dev
|
||
|
compose_file := ./docker/docker-compose.yaml
|
||
|
compose_command := PUID=$(shell id -u) PGID=$(shell id -g) docker-compose -f $(compose_file)
|
||
|
compose_run := $(compose_command) run --rm $(service_name)
|
||
|
|
||
|
build:
|
||
|
@$(compose_command) build
|
||
|
|
||
|
install:
|
||
|
@make build
|
||
|
@$(compose_run) composer install
|
||
|
|
||
|
prune:
|
||
|
@$(compose_command) rm -fsv
|
||
|
|
||
|
exec-shell:
|
||
|
@$(compose_run) sh
|
||
|
|
||
|
code-style-fix:
|
||
|
@$(compose_run) composer code-style-fix
|
||
|
|
||
|
code-style-check:
|
||
|
@$(compose_run) composer code-style-check
|
||
|
|
||
|
analyze-code:
|
||
|
@$(compose_run) composer analyze-code
|
||
|
|
||
|
run-unit-tests:
|
||
|
@$(compose_run) composer run-unit-tests
|
||
|
|
||
|
full-test:
|
||
|
@$(compose_run) composer full-test
|