From 0d677f49a7c74a8400a8654f0111f2fd5228cef4 Mon Sep 17 00:00:00 2001 From: Piotr Icikowski Date: Sun, 6 Mar 2022 13:34:02 +0100 Subject: [PATCH] Add Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8635e24 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +.PHONY: clean test coverage +.SILENT: ${.PHONY} + +GO_TEST := go test ./... -race -p 1 + +all: clean + ${GO_TEST} -v + +clean: + rm -f *.out *.html + go clean -cache + +test: clean + ${GO_TEST} + +coverage: clean + ${GO_TEST} -v -covermode atomic -coverprofile cover.out