-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (28 loc) · 744 Bytes
/
Makefile
File metadata and controls
32 lines (28 loc) · 744 Bytes
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
.PHONY: dist-gen dist-clean dist clean test formatting phpstan
composer:
rm -r vendor 2> /dev/null || true
composer install --prefer-dist --no-dev
php artisan vendor:publish --tag=log-viewer-asset
test:
@if [ -x "vendor/bin/phpunit" ]; then \
./vendor/bin/phpunit; \
else \
echo ""; \
echo "Please install phpunit:"; \
echo ""; \
echo " composer install"; \
echo ""; \
fi
formatting:
@rm .php_cs.cache 2> /dev/null || true
@if [ -x "vendor/bin/php-cs-fixer" ]; then \
PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix -v --config=.php-cs-fixer.php; \
else \
echo ""; \
echo "Please install php-cs-fixer:"; \
echo ""; \
echo " composer install"; \
echo ""; \
fi
phpstan:
vendor/bin/phpstan analyze