-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 936 Bytes
/
Makefile
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
UID=$(shell id -u)
GID=$(shell id -g)
DOCKER_PHP_SERVICE=php
start: erase cache-folders build composer-install bash
erase:
@docker compose down -v
build:
@docker compose build && \
docker compose pull
cache-folders:
@mkdir -p ~/.composer && chown ${UID}:${GID} ~/.composer
composer-install:
@docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer install
bash:
@docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} bash
logs:
@docker compose logs -f ${DOCKER_PHP_SERVICE}
.PHONY: tests
tests:
@docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer tests
lint:
@docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer lint
lint-fix:
@docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer lint:fix
static-analysis:
@docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer static-analysis
all: lint static-analysis tests