Skip to content

Commit 3c99b76

Browse files
committed
Update docs
1 parent 5b5b07c commit 3c99b76

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

Makefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
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

0 commit comments

Comments
 (0)