Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·53 lines (36 loc) · 1.73 KB
/
Copy pathMakefile
File metadata and controls
executable file
·53 lines (36 loc) · 1.73 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
53
.PHONY: help docker-build composer-install composer-update composer-require composer-require-dev composer-remove composer-clean style-check style-fix code-check phpunit-tests
.DEFAULT_GOAL := help
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
docker-build:
docker-compose down
docker-compose build --pull
docker-compose up -d
composer-install:
docker-compose run --rm -T app composer install
composer-update:
docker-compose run --rm -T app composer update
composer-require:
docker-compose run --rm -T app composer req $(package)
composer-require-dev:
docker-compose run --rm -T app composer req --dev $(package)
composer-remove:
docker-compose run --rm -T app composer rem $(package)
composer-clean:
rm -Rf ./vendor ./composer.lock
style-check:
docker-compose run --rm -T app vendor/bin/phpcs --standard=PSR1,PSR12 --exclude=Generic.Files.LineLength $(folders)
style-fix:
docker-compose run --rm -T app vendor/bin/phpcbf --standard=PSR1,PSR12 --exclude=Generic.Files.LineLength $(folders)
code-check:
docker-compose run --rm -T app vendor/bin/phpstan analyse -c phpstan.neon
phpunit-tests:
docker-compose run --rm -T app vendor/bin/phpunit -c phpunit.xml.dist
github-composer-install:
composer install --no-interaction --no-progress --no-suggest --optimize-autoloader
github-tests-phpunit: github-composer-install
XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./phpunit.xml.dist
github-tests-phpstan: github-composer-install
./vendor/bin/phpstan analyse -c ./phpstan.neon
github-tests-codesniffer: github-composer-install
./vendor/bin/phpcs --standard=PSR1,PSR12 --exclude=Generic.Files.LineLength src tests