-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (36 loc) · 1.5 KB
/
Makefile
File metadata and controls
52 lines (36 loc) · 1.5 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
.PHONY: setup setup-php81 setup-php85 php php81 php85 cs-fixer cs-fixer-php81 cs-fixer-php85 phpstan phpstan-php81 phpstan-php85 tests tests-php81 tests-php85
setup: setup-php81 setup-php85
setup-php81:
rm -f composer.lock
docker-compose up --build -d php81
docker-compose exec php81 composer install
setup-php85:
rm -f composer.lock
docker-compose up --build -d php85
docker-compose exec php85 sh -c "COMPOSER_VENDOR_DIR=vendor85 composer install"
php: php81
php81:
docker-compose exec php81 sh
php85:
docker-compose exec php85 sh
cs-fixer: cs-fixer-php81 cs-fixer-php85
cs-fixer-php81:
docker-compose exec php81 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes
cs-fixer-php85:
docker-compose exec php85 vendor85/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes
phpstan: phpstan-php81 phpstan-php85
phpstan-php81:
docker-compose exec php81 vendor/bin/phpstan analyse src tests --configuration=phpstan-lt-8.5.neon --memory-limit=1G
phpstan-php85:
docker-compose exec php85 sh -c "mv vendor vendor_tmp && COMPOSER_VENDOR_DIR=vendor85 vendor85/bin/phpstan analyse src tests --configuration=phpstan-8.5-plus.neon --memory-limit=1G; mv vendor_tmp vendor"
tests: tests-php81 tests-php85
tests-php81:
rm -rf var/cache/test
mkdir -p var/cache/test
docker-compose exec php81 vendor/bin/phpunit
tests-php85:
rm -rf var/cache/test
mkdir -p var/cache/test
docker-compose exec php85 sh -c "COMPOSER_VENDOR_DIR=vendor85 vendor85/bin/phpunit"
ci-local:
act -j build