-
Notifications
You must be signed in to change notification settings - Fork 13
/
Taskfile.yml
80 lines (80 loc) · 3.06 KB
/
Taskfile.yml
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
version: '3'
tasks:
build:
cmds:
- docker compose -f docker-compose.yml build
run:
cmds:
- docker compose -f docker-compose.yml up --remove-orphans
start:
cmds:
- docker compose -f docker-compose.yml up --remove-orphans
stop:
cmds:
- docker compose -f docker-compose.yml stop
restart:
cmds:
- task: stop
- task: start
encrypt:
cmds:
- task: start
- docker compose -f docker-compose.yml exec app bash -c "php bin/console semart:encrypt {{.CLI_ARGS}}"
- task: stop
init:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php bin/console doctrine:database:create --no-interaction"
- task: sync
- docker compose -f docker-compose.yml exec app bash -c "php bin/console doctrine:fixtures:load --no-interaction"
install:
cmds:
- task: start
- task: clean
- task: init
- docker compose -f docker-compose.yml exec app bash -c "php bin/console assets:install"
- task: restart
update:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "composer update --prefer-dist -vvv"
- task: restart
require:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "composer require {{.CLI_ARGS}} -vvv"
upgrade:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "composer recipes:update -vvv"
sync:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php bin/console doctrine:schema:update --force --no-interaction"
exec:
cmds:
- docker compose -f docker-compose.yml exec {{.CLI_ARGS}}
symfony:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php bin/console {{.CLI_ARGS}}"
reset:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php bin/console semart:reset"
generate:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php bin/console semart:generate {{.CLI_ARGS}}"
- task: sync
log:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "tail -f var/log/dev.log"
test:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php vendor/bin/phpunit"
insight:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php vendor/bin/phpinsights"
cs-fixer:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php vendor/bin/php-cs-fixer fix lib --config=.php-cs-fixer.dist.php"
checkbug:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php vendor/bin/phpstan analyse lib"
clean:
cmds:
- docker compose -f docker-compose.yml exec app bash -c "php bin/console cache:clear"
- docker compose -f docker-compose.yml exec app bash -c "chmod 777 -R var"