Fix testing in makefile
This commit is contained in:
parent
94de6972dd
commit
248f694740
7
Makefile
7
Makefile
@ -1,18 +1,23 @@
|
||||
BINDIR := bin
|
||||
EXECUTABLE_CLI := airshipadm
|
||||
|
||||
# go options
|
||||
PKG := ./...
|
||||
TESTS := .
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o $(BINDIR)/$(EXECUTABLE_CLI)
|
||||
|
||||
.PHONY: test
|
||||
test: build
|
||||
test: TESTFLAGS += -race -v
|
||||
test: unit-tests
|
||||
test: lint
|
||||
|
||||
.PHONY: unit-tests
|
||||
unit-tests:
|
||||
go test
|
||||
go test -run $(TESTS) $(PKG) $(TESTFLAGS)
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
|
Loading…
x
Reference in New Issue
Block a user