This commit is contained in:
Gregory Letellier
2023-10-26 14:34:20 +02:00
commit a2dc633be4
14 changed files with 5206 additions and 0 deletions

45
Makefile Normal file
View File

@@ -0,0 +1,45 @@
COMPOSER ?= $(shell which composer)
.PHONY: init
init:
$(RM) -r .git
git init
.PHONY: up
up: install-vendor
.PHONY: install-vendor
install-vendor:
$(PHP) $(COMPOSER) install
.PHONY: clean
clean: clean-vendor clean-composerlock
.PHONY: clean-vendor
clean-vendor:
$(RM) -r ./vendor
.PHONY: clean-composerlock
clean-composerlock:
$(RM) composer.lock
.PHONY: unit-tests
unit-tests:
./vendor/bin/pest
.PHONY: unit-tests-coverage
unit-tests-coverage:
XDEBUG_MODE=coverage ./vendor/bin/pest --coverage
.PHONY: mutation
mutation:
./vendor/bin/infection --test-framework=pest --show-mutations
.PHONY: code-sniffer
code-sniffer:
./vendor/bin/phpcs
.PHONY: code-sniffer-fix
code-sniffer-fix:
./vendor/bin/phpcbf