aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index ce52dd1..7bd6a6a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,16 @@
-# If there is a GOPATH use it, otherwise we define our own. This is not exported
-# and should not impact the Go modules system.
-GOPATH?= $(shell go env GOPATH)
-SRC= $(shell find . -type f -name '*.go')
-
-export GO111MODULE=on
-export CGO_ENABLED=0
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
+ |sort \
|awk 'BEGIN{FS=":.*?## "};{printf "\033[36m%-30s\033[0m %s\n",$$1,$$2}'
.PHONY: test
test: lint ## Run tests and create coverage report
- go test -short -coverprofile=coverage.txt -covermode=atomic ./...
- go tool cover -html=coverage.txt -o coverage.html
+ go test -short -coverprofile=coverage.txt -covermode=atomic ./... && \
+ go tool cover -html=coverage.txt -o coverage.html
+.PHONY: lint
lint: ## Lint code
revive ./... || golint -set_exit_status ./... || true