Repository navigation
Expand file tree
/
Copy pathcompose.coverage.yaml
More file actions
43 lines (41 loc) · 1.57 KB
/
Copy pathcompose.coverage.yaml
File metadata and controls
43 lines (41 loc) · 1.57 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
# Added by tests/run.sh: measures coverage of the application server process
# during the HTTP and write-workflow tests and merges it with the PHPUnit
# coverage. See tests/README.md, "Coverage".
services:
application:
environment:
# Coverage only: without compose.coverage.yaml Xdebug is off
# (tests/php-runtime.Dockerfile), so error output stays unchanged.
XDEBUG_MODE: coverage
PGACC_COVERAGE_DIR: /coverage/http
PGACC_COVERAGE_BRANCHES: ${PGACC_COVERAGE_BRANCHES:-1}
# PHP allows only one auto_prepend_file: the coverage prepend replaces
# the diagnostics recorder from compose.test.yaml and includes it itself.
PGACC_COVERAGE_CHAINED_PREPEND: /app/tests/runtime/diagnostics-prepend.php
# Same as compose.test.yaml, except for the auto_prepend_file.
command:
- php
- -d
- output_buffering=4096
- -d
- auto_prepend_file=/app/tests/coverage/prepend.php
- -S
- 0.0.0.0:8080
- -t
- /app/public
# The allow list of the nginx site (tests/runtime/router.php).
- /app/tests/runtime/router.php
volumes:
- coverage:/coverage
application-test:
environment:
PGACC_COVERAGE_DIR: /coverage
PGACC_COVERAGE_BRANCHES: ${PGACC_COVERAGE_BRANCHES:-1}
PGACC_COVERAGE_STRICT_BRANCHES: ${PGACC_COVERAGE_STRICT_BRANCHES:-0}
PGACC_COVERAGE_REPORT_DIR: /coverage-report
PGACC_COVERAGE_OWNER: ${PGACC_COVERAGE_OWNER:-}
volumes:
- coverage:/coverage
- ${PGACC_COVERAGE_HOST_DIR:-./build/coverage}:/coverage-report
volumes:
coverage: {}