mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-22 20:40:23 +08:00
scripts/coverage.sh: ignore packages without test files
We have vet and build check available, no need to repeat them here
This commit is contained in:
@@ -31,7 +31,8 @@ covermode=${COVERMODE:-atomic}
|
||||
coverdir=$(mktemp -d /tmp/coverage.XXXXXXXXXX)
|
||||
profile="${coverdir}/profile.out"
|
||||
if [ -z "$pkgs" ]; then
|
||||
pkgs="$(go list -mod vendor ./... | grep -vE 'host-image|hostimage')"
|
||||
pkgs="$(go list -mod vendor -test ./... | grep '\.test$' | sed -e 's/\.test$//')"
|
||||
pkgs="$(echo "$pkgs" | grep -vE 'host-image|hostimage')"
|
||||
fi
|
||||
if type circleci &>/dev/null; then
|
||||
pkgs="$(echo "$pkgs" | circleci tests split)"
|
||||
|
||||
Reference in New Issue
Block a user