Use the test script and the go mod download

This commit is contained in:
Marc Di Luzio 2020-06-06 18:52:02 +01:00
parent 0fbc973899
commit 3274bc93b9

View file

@ -1,12 +1,14 @@
VERSION := $(shell git describe --always --long --dirty --tags)
build:
go mod download
go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
install:
go mod download
go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
test:
go test -v ./...
./script/test.sh
.PHONY: install test