File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- duild :
1+ .PHONY : test
2+ .DEFAULT_GOAL := help
3+
4+ help : # # Output usage documentation
5+ @echo " Usage: make COMMAND [args]\n\nCommands:\n"
6+ @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
7+
8+ duild : # # Build necessary image for building packages
29 cd image && IMAGE_NAME=php-fpm-7.1-alpine ../hooks/build
310
4- .PHONY : test
5- test : test-static-analysis test-environment
11+ test : lint env-validate # # Run all tests
612
7- test-environment : duild
13+ env-validate : duild # # Testing requirements for environment
814 cd test && ./run.sh
915
10- test- static- analysis:
11- shellcheck --exclude=SC2148 Makefile
16+ lint : # # Run static analysis
17+ shellcheck --exclude=SC2148,SC2046 Makefile
1218 shellcheck hooks/*
1319 shellcheck test/* .sh
1420 shellcheck test/** /* .sh
You can’t perform that action at this time.
0 commit comments