-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile
47 lines (32 loc) · 1.36 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
DIR := ${CURDIR}
test-php72:
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 make test
test-php73:
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.3 make test
test-php74:
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.4 make test
test-php80:
docker run --rm -v $(DIR):/project -w /project webdevops/php:8.0 make test
test-php81:
docker run --rm -v $(DIR):/project -w /project webdevops/php:8.1 make test
test-php82:
docker run --rm -v $(DIR):/project -w /project webdevops/php:8.2 make test
test:
composer update --prefer-dist --no-interaction ${COMPOSER_PARAMS}
composer test
test-lowest:
COMPOSER_PARAMS='--prefer-lowest' make test
test-php72-lowest:
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.2 make test-lowest
test-php73-lowest:
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.3 make test-lowest
test-php74-lowest:
docker run --rm -v $(DIR):/project -w /project webdevops/php:7.4 make test-lowest
cs: composer.lock
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa:php8.1 php-cs-fixer fix -vv ${CS_PARAMS}
test-cs: composer.lock
CS_PARAMS='--dry-run' make cs
static: composer.lock
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa phpstan analyze -c .phpstan.neon
composer.lock:
docker run --rm -v $(DIR):/project -w /project jakzal/phpqa composer install