-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 975 Bytes
/
docker-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
version: "3.9"
services:
lint:
image: composer:2.1
volumes:
- ./:/app
working_dir: /app
command: >
sh -c "rm -f ./composer.lock &&
composer validate &&
composer install &&
php ./vendor/bin/phpcbf &&
php ./vendor/bin/phpcs"
tests:
image: composer:2.1
volumes:
- ./:/app
working_dir: /app
command: >
sh -c "rm -f ./composer.lock &&
composer validate &&
composer install &&
php ./vendor/bin/phpstan analyse --ansi --debug --memory-limit 512M &&
php ./vendor/bin/phpunit --stop-on-failure --testsuite=unit"
tests-failing:
image: composer:2.1
volumes:
- ./:/app
working_dir: /app
command: >
sh -c "rm -f ./composer.lock &&
composer validate &&
composer install &&
php ./vendor/bin/phpunit --stop-on-failure --testsuite=unit --group failing"