-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
44 lines (31 loc) · 1.14 KB
/
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
40
41
42
43
44
include .env.local
-include .env
CONTAINER_PHP=hskauting.app
CONTAINER_PHP_TEST=hskauting.app-test
CONTAINER_DB=hskauting.mysql
CONTAINER_DB_TEST=hskauting.mysql-test
CONSOLE?=
up: down
docker compose ${COMPOSE_FILE} up -d --force-recreate
down:
docker compose ${COMPOSE_FILE} down --remove-orphans
enter:
@docker exec -it ${CONTAINER_PHP} bash
init:
docker exec -it $(CONTAINER_PHP) composer install
docker exec -it $(CONTAINER_PHP) /app/vendor/bin/phing app-init
tests-all:
docker exec -it ${CONTAINER_PHP_TEST} /app/vendor/bin/phing tests
tests-unit:
docker exec -it ${CONTAINER_PHP_TEST} /app/vendor/bin/phing tests-unit
tests-integration:
docker exec -it ${CONTAINER_PHP_TEST} /app/vendor/bin/phing tests-integration
tests-acceptance:
docker exec -it ${CONTAINER_PHP_TEST} /app/vendor/bin/phing tests-acceptance
static-analysis:
docker exec -it ${CONTAINER_PHP} /app/vendor/bin/phing static-analysis
coding-standard:
docker exec -it ${CONTAINER_PHP} /app/vendor/bin/phing coding-standard
fix:
docker exec -it ${CONTAINER_PHP} /app/vendor/bin/phing coding-standard
docker exec -it ${CONTAINER_PHP} /app/vendor/bin/phing static-analysis