Makefile: ensure submodules are linted, covered, and tested

This commit is contained in:
Conner Fromknecht 2019-08-07 21:33:06 -07:00
parent c963fcbed8
commit 4dbe9379a9
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
2 changed files with 3 additions and 3 deletions

@ -30,8 +30,8 @@ GOINSTALL := GO111MODULE=on go install -v
GOTEST := GO111MODULE=on go test -v GOTEST := GO111MODULE=on go test -v
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*") GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
GOLIST := go list $(PKG)/... | grep -v '/vendor/' GOLIST := go list -deps $(PKG)/... | grep '$(PKG)'| grep -v '/vendor/'
GOLISTCOVER := $(shell go list -f '{{.ImportPath}}' ./... | sed -e 's/^$(ESCPKG)/./') GOLISTCOVER := $(shell go list -deps -f '{{.ImportPath}}' ./... | grep '$(PKG)' | sed -e 's/^$(ESCPKG)/./')
RM := rm -f RM := rm -f
CP := cp CP := cp

@ -1,7 +1,7 @@
DEV_TAGS = dev DEV_TAGS = dev
LOG_TAGS = LOG_TAGS =
TEST_FLAGS = TEST_FLAGS =
COVER_PKG = $$(go list ./... | grep -v lnrpc) COVER_PKG = $$(go list -deps ./... | grep '$(PKG)' | grep -v lnrpc)
# If specific package is being unit tested, construct the full name of the # If specific package is being unit tested, construct the full name of the
# subpackage. # subpackage.