Added rule to run tests
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,5 +1,5 @@
|
|||||||
.DEFAULT_GOAL := buildCmd
|
.DEFAULT_GOAL := buildCmd
|
||||||
.PHONY: fmt vet build
|
.PHONY: fmt vet buildLib buildCmd test
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
@@ -9,3 +9,5 @@ buildLib: vet
|
|||||||
go build -gcflags="-N -l" ./...
|
go build -gcflags="-N -l" ./...
|
||||||
buildCmd: buildLib
|
buildCmd: buildLib
|
||||||
go build -C cmd/ -o re ./...
|
go build -C cmd/ -o re ./...
|
||||||
|
test: buildCmd
|
||||||
|
go test -v ./...
|
||||||
|
Reference in New Issue
Block a user