Skip to content

Instantly share code, notes, and snippets.

@russellvt
Created March 14, 2021 11:21
Show Gist options
  • Select an option

  • Save russellvt/4d495f1852e22a4d1184e310bc77f2a7 to your computer and use it in GitHub Desktop.

Select an option

Save russellvt/4d495f1852e22a4d1184e310bc77f2a7 to your computer and use it in GitHub Desktop.
# Credit: Nic Wortel
# Ref: https://localheinz.com/blog/2018/01/24/makefile-for-lazy-developers/
.PHONY: it
it: coding-standards tests
.PHONY: code-coverage
code-coverage: vendor
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text
.PHONY: coding-standards
coding-standards: vendor
vendor/bin/php-cs-fixer fix --config=.php_cs --diff --verbose
.PHONY: mutation-tests
mutation-tests: vendor
vendor/bin/infection --min-covered-msi=80 --min-msi=80
.PHONY: tests
tests: vendor
vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml
vendor/bin/phpunit --configuration=test/Integration/phpunit.xml
vendor: composer.json composer.lock
composer validate
composer install
composer normalize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment