Add make target to run Go tests.

This commit is contained in:
Martin Etmajer
2018-09-20 21:01:56 +02:00
committed by Martin Etmajer
parent b443a57db5
commit 49dc93e4e9

View File

@@ -8,10 +8,11 @@ LICENSE := MIT
VERSION := $(shell cat ./VERSION)
GOBUILD := go build -ldflags "-X main.version=$(VERSION)"
GOPKGS := $(shell go list ./... | grep -v /vendor)
.PHONY: all
all: clean deps lint build
all: clean deps lint test build
.PHONY: authors
authors:
@@ -48,3 +49,7 @@ deps:
release:
git tag -a v$(VERSION) -m v$(VERSION)
git push --tags
.PHONY: test
test:
go test -v $(GOPKGS)