-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (51 loc) · 1.31 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (51 loc) · 1.31 KB
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
services:
# Main test runner service
tests:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- composer-cache:/home/testuser/.composer/cache
command: composer tests
# Individual test services for running specific tests
test-code-style:
extends: tests
command: composer test:code-style
test-pest:
extends: tests
command: composer test:pest
test-phpstan:
extends: tests
command: composer test:phpstan
test-phpmd:
extends: tests
command: composer test:phpmd
test-infection:
extends: tests
command: php -d zend_extension=xdebug -d xdebug.mode=coverage ./vendor/bin/pest --mutate --everything --parallel
test-rector:
extends: tests
command: composer test:rector
test-lint:
extends: tests
command: composer test:lint
test-security:
extends: tests
command: composer test:vulnerabilities-check
# Service to run all tests in parallel
test-all:
extends: tests
command: |
bash -c "
composer test:composer-validate &&
composer test:lint &&
composer test:code-style &&
composer test:phpstan &&
composer test:phpmd &&
composer test:pest &&
composer test:rector &&
composer test:vulnerabilities-check
"
volumes:
composer-cache: