diff --git a/entrypoint.sh b/entrypoint.sh index 6b53561..1c2676d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,4 +13,7 @@ go get -t -v ./... diff -u <(echo -n) <(gofmt -d -s .) #go vet ./... #go list ./... -GOCACHE=off go test -v ./... +P=github.com/ceph/go-ceph +GOCACHE=off go test -v -covermode=count -coverprofile=cover.out -coverpkg=$P/cephfs,$P/rados,$P/rbd ./... +mkdir -p /results/coverage +go tool cover -html=cover.out -o /results/coverage/go-ceph.html