remove duplicate test target @ root

add structure for [lint,vet,test-unit] all wrapped up
by the test target
pull/207/head
Seth Goings 9 years ago committed by Michelle Noorali
parent 1af4b9ae77
commit 43d838f280

@ -49,5 +49,3 @@ $(TARGETS) : % : $(addsuffix %,$(SUBDIRS))
$(SUBDIRS_TARGETS) :
$(MAKE) -C $(@D) $(@F:.%=%)
test:
go test -v ./...

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
include ../include.mk
.PHONY : all build test push container clean
DOCKER_REGISTRY := gcr.io
@ -47,5 +49,17 @@ clean:
-docker rmi $(PREFIX)/$(IMAGE):$(TAG)
rm -f expandybird
test:
go test -v ./...
.PHONY: test
test: lint vet test-unit
.PHONY: test-unit
test-unit:
$(GO_TEST)
.PHONY: lint
lint:
$(GO_LINT)
.PHONY: vet
vet:
$(GO_VET)

@ -0,0 +1,2 @@
GO_VET := echo using go vet
GO_TEST := go test -v ./...
Loading…
Cancel
Save