-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.yml
40 lines (37 loc) · 1.01 KB
/
compose.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
x-params:
- &common
environment:
XDEBUG_MODE: coverage
volumes:
- ./src/:/app/src:ro
- ./tests/:/app/tests:ro
- ./composer.json/:/app/composer.json:ro
- ./phpunit.xml.dist/:/app/phpunit.xml.dist:ro
- /app/tests/Bundle/App/var # anonymous writable volume for cache/logs
command:
- sh
- -c
- 'composer install && vendor/bin/simple-phpunit --coverage-text'
# To run test just exec e.g. 'docker compose run --rm php8.1'
services:
php8.1:
build:
context: .
target: php
args:
PHP_VERSION: 8.1
<<: *common
php8.2:
build:
context: .
target: php
args:
PHP_VERSION: 8.2
<<: *common
php8.3:
build:
context: .
target: php
args:
PHP_VERSION: 8.3
<<: *common