-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
54 lines (47 loc) · 1.26 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
PHP_VERSION ?= 7.4
PHP := docker-compose run --rm php-${PHP_VERSION}
docker-build:
docker-compose build
composer-install:
${PHP} composer install
composer-self-update:
${PHP} composer self-update
composer-update:
${PHP} composer update
composer-require:
${PHP} composer require ${PACKAGE}
composer-require-dev:
${PHP} composer require --dev ${PACKAGE}
test: test-phpunit test-infection qa-psalm
test-phpunit:
${PHP} php -v
${PHP} php vendor/bin/phpunit --coverage-text
test-phpunit-local:
php -v
php vendor/bin/phpunit --coverage-text
php vendor/bin/psalm --no-cache
php vendor/bin/infection
test-infection:
${PHP} php vendor/bin/infection -j2
travis:
PHP_VERSION=7.1 make travis-job
PHP_VERSION=7.2 make travis-job
PHP_VERSION=7.3 make travis-job
PHP_VERSION=7.4 make travis-job
PHP_VERSION=8.0 make travis-job
PHP_VERSION=8.1 make travis-job
PHP_VERSION=8.2 make travis-job
PHP_VERSION=8.3 make travis-job
travis-job:
${PHP} composer update
${PHP} php -v
${PHP} php vendor/bin/phpunit
${PHP} php vendor/bin/psalm --no-cache
qa-psalm:
${PHP} php vendor/bin/psalm --no-cache --find-unused-psalm-suppress
qa-psalm-suppressed:
grep -rn psalm-suppress src
clean:
rm -rfv .phpunit.result.cache coverage.xml coverage infection.log
run-php:
${PHP} php ${FILE}