-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
90 lines (62 loc) · 1.99 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
start: api
test: testlocal testintegration
testlocal: testunit testapi
testunit: composer rmTestDb upTestDb broker yiimigratetestDb
docker compose run --rm unittest
testapi: upTestDb yiimigratetestDb
docker compose kill broker
docker compose up -d broker
docker compose run --rm apitest
testintegration:
docker compose run --rm integrationtest
api: upDb broker composer yiimigrate
docker compose up -d api zxcvbn phpmyadmin brokerpma emailpma
composer:
docker compose run --rm cli composer install
composershow:
docker compose run --rm cli bash -c 'composer show --format=json --no-dev --no-ansi --locked | jq "[.locked[] | { \"name\": .name, \"version\": .version }]" > dependencies.json'
composerupdate:
docker compose run --rm cli bash -c "composer update"
make composershow
email:
docker compose up -d email
emailcron:
docker compose up -d emailcron
rmDb:
docker compose kill db
docker compose rm -f db
upDb:
docker compose up -d db
yiimigrate:
docker compose run --rm cli ./yii migrate --interactive=0
yiimigratelocal:
docker compose run --rm cli ./yii migrate --migrationPath=console/migrations-local/ --interactive=0
basemodels:
docker compose run --rm cli ./rebuildbasemodels.sh
yiimigratetestDb:
docker compose run --rm cli bash -c 'MYSQL_HOST=testDb MYSQL_DATABASE=test ./yii migrate --interactive=0'
yiimigratetestDblocal:
docker compose run --rm cli bash -c 'MYSQL_HOST=testDb MYSQL_DATABASE=test ./yii migrate --migrationPath=console/migrations-test/ --interactive=0'
rmTestDb:
docker compose kill testDb
docker compose rm -f testDb
upTestDb:
docker compose up -d testDb
broker:
docker compose up -d broker
ldap:
docker compose up -d ldap
ldapload:
docker compose kill ldap
docker compose rm -f ldap
docker compose run --rm ldapload
bounce:
docker compose up -d api
clean:
docker compose kill
docker compose rm -f
raml2html: api.html
api.html: api.raml
docker compose run --rm raml2html
psr2:
docker compose run --rm cli bash -c "vendor/bin/php-cs-fixer fix ."