build: exclude vendor and other previously excluded subpackages
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
parent
efae8d5681
commit
a966a226b8
|
@ -30,8 +30,8 @@ pushd $PWD/..
|
||||||
COVERAGE_REPORT_LOCATION="./profile.cov"
|
COVERAGE_REPORT_LOCATION="./profile.cov"
|
||||||
echo "" > $COVERAGE_REPORT_LOCATION
|
echo "" > $COVERAGE_REPORT_LOCATION
|
||||||
|
|
||||||
# Exclude vendor in the same way as Makefile does
|
# Exclude vendor etc.
|
||||||
EXCLUDING_VENDOR=$(go list ./... | grep -v /vendor/)
|
EXCLUDING_VENDOR=$(go list ./... | grep -Ev 'vendor|common|client|cli|examples|robeaux')
|
||||||
|
|
||||||
# Iterate over all non-vendor packages and run tests with coverage
|
# Iterate over all non-vendor packages and run tests with coverage
|
||||||
for package in $EXCLUDING_VENDOR; do \
|
for package in $EXCLUDING_VENDOR; do \
|
||||||
|
|
Loading…
Reference in New Issue