From 5f1e2e1b7cfea703f61790b9d34b0daf8e1c41e1 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 7 Feb 2019 16:26:20 +0530 Subject: [PATCH] update make test in Makefile Signed-off-by: Madhu Rajanna --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2d0cb59cf..734a761b8 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,14 @@ $(info cephfs image settings: $(CEPHFS_IMAGE_NAME) version $(CEPHFS_IMAGE_VERSIO all: rbdplugin cephfsplugin -test: - go test github.com/ceph/ceph-csi/pkg/... -cover - go vet github.com/ceph/ceph-csi/pkg/... +test: go-test static-check + +go-test: + ./scripts/test-go.sh + +static-check: + ./scripts/lint-go.sh + ./scripts/lint-text.sh rbdplugin: if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi