Fix testing in makefile

This commit is contained in:
Ian Howell 2019-04-26 15:43:23 -05:00
parent 94de6972dd
commit 248f694740

@ -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: