aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2019-03-04 12:17:37 +0000
committerFelix Hanley <felix@userspace.com.au>2019-03-04 12:17:37 +0000
commit000b36a8d70913508afd95ca63bd9557eb9e5999 (patch)
tree69fb41f17abafa058389915820b6cf3d65c236af
parente4d1d74d2ff39e4202d7f640f7f557f74ac4a3d9 (diff)
downloadlexer-000b36a8d70913508afd95ca63bd9557eb9e5999.tar.gz
lexer-000b36a8d70913508afd95ca63bd9557eb9e5999.tar.bz2
Minor makefile update
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 4667b56..6ce98bf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,15 @@
pkgs := $(shell go list ./...)
-.PHONY: lint test clean
-
-ifdef GOPATH
-GO111MODULE=on
-endif
-
+.PHONY: test
test: lint ## Run tests with coverage
go test -short -cover -coverprofile coverage.out $(pkgs)
go tool cover -html=coverage.out -o coverage.html
+.PHONY: lint
lint:
golint $(pkgs)
+.PHONY: clean
clean: ## Clean all test files
rm -rf coverage*