-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.05 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
PHP_VERSION ?= 8.1
composer:
docker run --init -it --rm -v "$$(pwd):/app" -w /app composer:latest \
composer install
composer-up:
docker run --init -it --rm -v "$$(pwd):/app" -w /app composer:latest \
composer update
composer-dump:
docker run --init -it --rm -v "$$(pwd):/app" -w /app composer:latest \
composer dump-autoload
psalm:
docker run --init -it --rm -v "$$(pwd):/app" -e XDG_CACHE_HOME=/tmp -w /app \
ghcr.io/kuaukutsu/php:${PHP_VERSION}-cli \
./vendor/bin/psalm
phpunit:
docker run --init -it --rm -v "$$(pwd):/app" -u $$(id -u) -w /app \
ghcr.io/kuaukutsu/php:${PHP_VERSION}-cli \
./vendor/bin/phpunit
phpcs:
docker run --init -it --rm -v "$$(pwd):/app" -u $$(id -u) -w /app \
ghcr.io/kuaukutsu/php:${PHP_VERSION}-cli \
./vendor/bin/phpcs
phpcbf:
docker run --init -it --rm -v "$$(pwd):/app" -u $$(id -u) -w /app \
ghcr.io/kuaukutsu/php:${PHP_VERSION}-cli \
./vendor/bin/phpcbf
rector:
docker run --init -it --rm -v "$$(pwd):/app" -u $$(id -u) -w /app \
ghcr.io/kuaukutsu/php:${PHP_VERSION}-cli \
./vendor/bin/rector