-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 831 Bytes
/
Makefile
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
DOCKER=docker-compose -f ./docker/docker-compose.yml
PHP=php80-cli
cli:
$(DOCKER) run $(PHP) bash
coverage:
$(DOCKER) run --rm $(PHP) php -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text
fix:
$(DOCKER) run --rm $(PHP) ./vendor/bin/php-cs-fixer fix
install:
$(DOCKER) build
$(DOCKER) run --rm $(PHP) composer install
mutation:
$(DOCKER) run --rm $(PHP) ./vendor/bin/infection --min-msi=80
phpstan:
$(DOCKER) run --rm $(PHP) ./vendor/bin/phpstan analyse
psalm:
$(DOCKER) run --rm $(PHP) ./vendor/bin/psalm --show-info=true
standards:
$(DOCKER) run --rm $(PHP) ./vendor/bin/php-cs-fixer fix --dry-run -v
test: standards unit phpstan psalm mutation
unit:
$(DOCKER) run --rm $(PHP) ./vendor/bin/phpunit
$(DOCKER) run --rm php81-cli ./vendor/bin/phpunit
$(DOCKER) run --rm php82-cli ./vendor/bin/phpunit