File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- qa : lint test
1+ qa : lint test # # Lint and test the code in multiple images
22
33mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST ) ) )
44current_dir := $(abspath $(patsubst % /,% ,$(dir $(mkfile_path ) ) ) )
55
66.PHONY : *
77
8- lint : php-fpm-healthcheck
8+ lint : php-fpm-healthcheck # # Lint code
99 docker run --rm -v ${current_dir} :/mnt:ro koalaman/shellcheck \
1010 ./php-fpm-healthcheck ./test/* .sh
1111
12- test :
12+ test : # # Test code in multiple images
1313 $(MAKE ) test-image IMAGE=" php:fpm-alpine" DOCKERFILE=" alpine"
1414 $(MAKE ) test-image IMAGE=" php:7.1-fpm-alpine3.7" DOCKERFILE=" alpine"
1515 $(MAKE ) test-image IMAGE=" php:7.1-fpm-alpine3.8" DOCKERFILE=" alpine"
2222
2323test-image :
2424 ./test/docker.sh ${DOCKERFILE} ${IMAGE}
25+
26+ help :
27+ @echo " \033[33mUsage:\033[0m\n make [target] [FLAGS=\" val\" ...]\n\n\033[33mTargets:\033[0m"
28+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[32m%-18s\033[0m %s\n", $$1, $$2}' # look at this magic
You can’t perform that action at this time.
0 commit comments