From 3274bc93b95ef6a7e1ccb3d5c9d4f158a639d0f9 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 6 Jun 2020 18:52:02 +0100 Subject: [PATCH] Use the test script and the go mod download --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3698e7a..aca7d01 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file