aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 3750053..753df5d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,9 @@
+GO ?= go1.16beta1
-.PHONY: test
test: lint
- go test -short -coverprofile=coverage.txt -covermode=atomic ./... \
- && go tool cover -html=coverage.txt -o coverage.html
+ $(GO) test -race -short -coverprofile=coverage.txt -covermode=atomic ./... \
+ && $(GO) tool cover -func=coverage.txt
-.PHONY: lint
-lint:
- go vet ./...
+lint: ; $(GO) vet ./...
-.PHONY: clean
-clean:
- rm -rf coverage*
+clean: ; rm -rf coverage*