build: exclude vendor and other previously excluded subpackages

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans 2018-07-06 11:16:36 +02:00
parent efae8d5681
commit a966a226b8
1 changed files with 2 additions and 2 deletions

View File

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