-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
78 lines (62 loc) · 1.72 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
version: '3'
tasks:
test:
cmd: 'vendor/bin/phpunit --coverage-html coverage {{.CLI_ARGS}}'
cs-fix:
cmd: 'vendor/bin/php-cs-fixer fix --diff --verbose {{.CLI_ARGS}}'
cs:
cmds:
- task: cs-fix
vars:
CLI_ARGS: "--dry-run --stop-on-violation {{.CLI_ARGS}}"
rector-fix:
cmd: 'vendor/bin/rector process {{.CLI_ARGS}}'
rector:
cmds:
- task: rector-fix
vars:
CLI_ARGS: "--dry-run {{.CLI_ARGS}}"
stan:
cmd: 'vendor/bin/phpstan {{.CLI_ARGS}}'
install:
cmd: 'composer install {{.CLI_ARGS}}'
sources:
- composer.json
- composer.lock
generates:
- vendor/autoload.php
composer-normalize-fix:
deps: [install]
cmds:
- 'composer normalize --diff {{.CLI_ARGS}}'
composer-normalize:
cmds:
- task: composer-normalize-fix
vars:
CLI_ARGS: '--dry-run {{.CLI_ARGS}}'
composer-validate: 'composer validate --strict --no-check-publish {{.CLI_ARGS}}'
composer-audit: 'composer audit {{.CLI_ARGS}}'
infection: 'vendor/bin/infection'
composer-check-require:
deps: [install]
cmd: 'vendor/bin/composer-require-checker check --config-file=composer-require-checker.json {{.CLI_ARGS}}'
composer-check-unused:
deps: [install]
cmd: 'vendor/bin/composer-unused {{.CLI_ARGS}}'
run:
cmd: './bin/comments_density analyze'
base:
cmd: './bin/comments_density baseline'
check:
cmds:
- task: cs
- task: stan
- task: rector
# - task: deptrac-directories
- task: test
- task: infection
- task: composer-validate
- task: composer-audit
- task: composer-normalize
- task: composer-check-require
- task: composer-check-unused