Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyar committed Mar 10, 2018
1 parent 5b5b07c commit 3c99b76
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
duild:
.PHONY: test
.DEFAULT_GOAL := help

help: ## Output usage documentation
@echo "Usage: make COMMAND [args]\n\nCommands:\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'

duild: ## Build necessary image for building packages
cd image && IMAGE_NAME=php-fpm-7.1-alpine ../hooks/build

.PHONY: test
test: test-static-analysis test-environment
test: lint env-validate ## Run all tests

test-environment: duild
env-validate: duild ## Testing requirements for environment
cd test && ./run.sh

test-static-analysis:
shellcheck --exclude=SC2148 Makefile
lint: ## Run static analysis
shellcheck --exclude=SC2148,SC2046 Makefile
shellcheck hooks/*
shellcheck test/*.sh
shellcheck test/**/*.sh

0 comments on commit 3c99b76

Please sign in to comment.