Created
January 28, 2019 13:32
-
-
Save rskuipers/7aec6a48816b9d97d2194d681ef2787f to your computer and use it in GitHub Desktop.
Hybrid Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: * | |
docker := $(shell if [ `pwd` != "/app" ]; then echo 'docker-compose exec php'; fi;) | |
fix-cs: | |
${docker} ./vendor/bin/php-cs-fixer fix | |
analyse: | |
${docker} ./vendor/bin/php-cs-fixer fix --diff --dry-run | |
${docker} ./vendor/bin/phpstan analyse | |
unit: | |
${docker} ./vendor/bin/phpunit | |
acceptance: | |
${docker} ./vendor/bin/behat | |
test: analyse unit acceptance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting approach!