-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
102 lines (84 loc) · 2.4 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3'
includes:
app: ./.tasks/app
composer: ./.tasks/composer
db: ./.tasks/database
docker: ./.tasks/docker
npm: ./.tasks/npm
env:
UID:
sh: id -u
GID:
sh: id -g
TTY: ''
tasks:
default:
cmds:
- task --list
init:
desc: Initialisation of dotenv
cmds:
- rsync -q --ignore-missing-args --ignore-existing $(pwd)/.env $(pwd)/.env.local
up:
desc: Initial setup application
cmds:
- task: docker:up
- task: app:install:dev
- task: app:migration:run
# Contribute
contribute:
desc: Contribute by running dev tools
cmds:
- task: phpcs
- task: twigcs
- task: phpstan
- task: phpmd
- task: phpunit
grum:init:
desc: Init GrumPHP
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/grumphp git:init
phpcs:
desc: PHPCS dry run
cmds:
- docker compose run --rm --no-deps$TTY phpfpm vendor/bin/php-cs-fixer fix --dry-run -v --diff
phpcs:fix:
desc: PHPCS fix
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/php-cs-fixer fix -v
twigcs:
desc: TwigCS lint
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/twig-cs-fixer lint templates/
twigcs:fix:
desc: TwigCS fix
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/twig-cs-fixer lint --fix templates/
phpmd:
desc: PHPMD run
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpmd src/ text phpmd.xml
phpmd:strict:
desc: PHPMD run with strict argument
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpmd --strict src/ text phpmd.xml
phpmd:baseline:
desc: PHPMD update baseline
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpmd --generate-baseline src/ text phpmd.xml
phpstan:
desc: PHPStan run
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpstan analyse --error-format=table
phpstan:baseline:
desc: PHPStan update baseline
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpstan --generate-baseline
phpunit:
desc: PHPUnit run
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpunit
phpunit:config:
desc: PHPUnit generate config
cmds:
- docker compose run --rm --no-deps $TTY phpfpm vendor/bin/phpunit --generate-configuration