-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (43 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
61 lines (43 loc) · 1.63 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
ROOT_DIR=$(shell pwd)/
TESTDIR=$(ROOT_DIR)/tests
PHPUNIT=vendor/bin/phpunit
INFECTION_VERSION=0.29.14
INFECTION_ARGS=
all: install tests
install:
composer update
tests: run-phpunit psalm run-infection phpcs
coverage: PUARGS="--coverage-clover=coverage.xml"
coverage: tests-unit
tests-unit: run-phpunit
run-phpunit:
@$(PHPUNIT) $(PUARGS)
psalm:
vendor/bin/psalm
psalm-ci:
vendor/bin/psalm --shepherd
infection.phar:
wget --no-check-certificate "https://github.com/infection/infection/releases/download/$(INFECTION_VERSION)/infection.phar"
wget --no-check-certificate "https://github.com/infection/infection/releases/download/$(INFECTION_VERSION)/infection.phar.asc"
chmod +x infection.phar
infection: infection.phar run-infection
infection-ci: INFECTION_ARGS=--logger-github --git-diff-base=origin/${GITHUB_BASE_REF} --git-diff-filter=AM --min-msi=80
infection-ci: INFECTION_VERSION=0.29.14
infection-ci: infection
phpcs:
vendor/bin/phpcs src/ --standard=psr12 --runtime-set ignore_warnings_on_exit true
run-infection: infection.phar
./infection.phar $(INFECTION_ARGS)
php81_shell:
docker-compose -f docker-compose.php81.yaml build
docker-compose -f docker-compose.php81.yaml run php bash
php82_shell:
docker-compose -f docker-compose.php82.yaml build
docker-compose -f docker-compose.php82.yaml run php bash
php83_shell:
docker-compose -f docker-compose.php83.yaml build
docker-compose -f docker-compose.php83.yaml run php bash
php84_shell:
docker-compose -f docker-compose.php84.yaml build
docker-compose -f docker-compose.php84.yaml run php bash
.PHONY: tests test-server clean install infection infection-ci psalm psalm-ci phpcs