forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coverage reports were the last part where we had to compile kubevirt with pure go-code. With this change it is possible to remove "libvirt-devel" from the builder image. Now no build/test dependencies are installedin the build-image which can get out of sync with bazel. Signed-off-by: Roman Mohr <[email protected]>
- Loading branch information
Showing
5 changed files
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
./hack/coverage.sh | ||
bazel run :goveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
source hack/common.sh | ||
|
||
path="./pkg/... ./vendor/kubevirt.io/client-go/..." | ||
coverpkg="../kubevirt/pkg/...,../kubevirt/vendor/kubevirt.io/client-go/..." | ||
profile=.coverprofile | ||
|
||
go test -cover -covermode=atomic -coverpkg="${coverpkg}" -v -coverprofile=${profile}.tmp ${path} | ||
cat ${profile}.tmp | grep -v generated >${profile} | ||
go tool cover -html=$profile -o ${OUT_DIR}/coverage.html | ||
rm -f ${profile}.tmp | ||
bazel coverage \ | ||
--config=${ARCHITECTURE} \ | ||
--stamp \ | ||
--test_output=errors -- //staging/src/kubevirt.io/client-go/... //pkg/... //cmd/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
set -e | ||
coverprofiles=$(cat | sed "s/ /,/g") | ||
|
||
./hack/coverage.sh | ||
goveralls -v -debug -service=${CI_NAME} -coverprofile=.coverprofile -ignore=$(find -regextype posix-egrep -regex ".*generated_mock.*\.go|.*swagger_generated\.go|.*openapi_generated\.go" -printf "%P\n" | paste -d, -s) | ||
goveralls -v -debug -service=${CI_NAME} -coverprofile=${coverprofiles} -ignore=$(find -regextype posix-egrep -regex ".*generated_mock.*\.go|.*swagger_generated\.go|.*openapi_generated\.go" -printf "%P\n" | paste -d, -s) |