-
Notifications
You must be signed in to change notification settings - Fork 0
/
ciTaskfile.yml
36 lines (34 loc) · 1.2 KB
/
ciTaskfile.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
version: '3'
includes:
docker: ../.docker
tasks:
test:
cmds:
- task: test-unit
- task: test-integration
test-*:
vars:
TESTSUITE: '{{index .MATCH 0}}'
cmds:
- task: docker:exec
vars: {DOCKER_USER: www-data, DOCKER_CONTAINER: 'wrt_app', EXEC_COMMAND: './vendor/bin/simple-phpunit --testsuite={{.TESTSUITE}} --testdox'}
phpcs-fix:
cmds:
- task: docker:exec
vars: {DOCKER_USER: www-data, DOCKER_CONTAINER: 'wrt_app', EXEC_COMMAND: './vendor/bin/php-cs-fixer {{.CLI_ARGS}}'}
phpcs:
cmds:
- task: docker:exec
vars: {DOCKER_USER: www-data, DOCKER_CONTAINER: 'wrt_app', EXEC_COMMAND: './vendor/bin/phpcs {{.CLI_ARGS}}'}
commitlint:
cmds:
- task: docker:exec
vars: {DOCKER_USER: www-data, DOCKER_CONTAINER: 'wrt_app', EXEC_COMMAND: 'npm run commitlint {{.CLI_ARGS}}'}
phpstan:
cmds:
- task: docker:exec
vars: {DOCKER_USER: www-data, DOCKER_CONTAINER: 'wrt_app', EXEC_COMMAND: './vendor/bin/phpstan --no-progress {{.CLI_ARGS}}'}
psalm:
cmds:
- task: docker:exec
vars: {DOCKER_USER: www-data, DOCKER_CONTAINER: 'wrt_app', EXEC_COMMAND: './vendor/bin/psalm --no-cache --show-info=true'}