Makefile: test
This commit is contained in:
5
Makefile
5
Makefile
@@ -3,9 +3,12 @@ VERSION=$(shell git describe --tags --always)
|
||||
BUILD_TIME=$(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}"
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all test
|
||||
|
||||
all: build-linux
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
build-linux:
|
||||
GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o bin/thanks ./cmd/thanks
|
||||
|
||||
Reference in New Issue
Block a user