-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (50 loc) · 1.77 KB
/
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
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
62
init:
make stop
make start
stop:
docker compose stop
start:
docker compose up -d
down:
docker compose down
restart:
make stop
make start
tests.all:
PHP=81 make tests.run
PHP=82 make tests.run
PHP=83 make tests.run
cs.fix:
PHP=81 make composer.update
docker exec 68publishers.image-storage.81 vendor/bin/php-cs-fixer fix -v
cs.check:
PHP=81 make composer.update
docker exec 68publishers.image-storage.81 vendor/bin/php-cs-fixer fix -v --dry-run
stan:
PHP=81 make composer.update
docker exec 68publishers.image-storage.81 vendor/bin/phpstan analyse
coverage:
PHP=81 make composer.update
docker exec 68publishers.image-storage.81 vendor/bin/tester -p phpdbg -C -s --coverage ./coverage.xml --coverage-src ./src ./tests
composer.update:
ifndef PHP
$(error "PHP argument not set.")
endif
@echo "========== Installing dependencies with PHP $(PHP) ==========" >&2
docker exec 68publishers.image-storage.$(PHP) composer update --no-progress --prefer-dist --prefer-stable --optimize-autoloader --quiet
composer.update-lowest:
ifndef PHP
$(error "PHP argument not set.")
endif
@echo "========== Installing dependencies with PHP $(PHP) (prefer lowest dependencies) ==========" >&2
docker exec 68publishers.image-storage.$(PHP) composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable --optimize-autoloader --quiet
tests.run:
ifndef PHP
$(error "PHP argument not set.")
endif
PHP=$(PHP) make composer.update
@echo "========== Running tests with PHP $(PHP) ==========" >&2
docker exec 68publishers.image-storage.$(PHP) vendor/bin/tester -C -s ./tests
PHP=$(PHP) make composer.update-lowest
@echo "========== Running tests with PHP $(PHP) (prefer lowest dependencies) ==========" >&2
docker exec 68publishers.image-storage.$(PHP) vendor/bin/tester -C -s ./tests