diff --git a/Makefile b/Makefile index 6aa91d6..2b5ec3e 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,26 @@ -.PHONY: test testrace int ci clean help +.PHONY: test test: ### Run unit tests go test ./... +.PHONY: testrace testrace: ### Run unit tests with race detector go test -race ./... +.PHONY: int int: ### Run integration tests (doesn't download redis server) ${MAKE} -C integration int +.PHONY: ci ci: ### Run full tests suite (including download and compilation of proper redis server) ${MAKE} test ${MAKE} -C integration redis_src/redis-server int ${MAKE} testrace +.PHONY: clean clean: ### Clean integration test files and remove compiled redis from integration/redis_src ${MAKE} -C integration clean +.PHONY: help help: ifeq ($(UNAME), Linux) @grep -P '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \