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