From 07fc661b6836bf8006715a4934a15caf2ee4864a Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 22 May 2023 15:38:25 +0200 Subject: ci: Generate code coverage for all test jobs We have an explicit "coverage" job that computes test coverage. Now that we have started to compute code coverage in our tests by default though it doesn't make much sense anymore to treat this job specially. Refactor our CI pipeline to extract code coverage for all jobs. This gives us a better global picture of which jobs cover what parts of our codebase. Remove the Makefile target that drove this as it is likely no longer of use to anybody. --- Makefile | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a75f6cd6e..f41a8f974 100644 --- a/Makefile +++ b/Makefile @@ -465,14 +465,6 @@ notice: ${SOURCE_DIR}/NOTICE clean: rm -rf ${BUILD_DIR} -.PHONY: cover -## Generate coverage report via Go tests. -cover: test-go - ${Q}echo "" - ${Q}echo "=====> Total test coverage: <=====" - ${Q}echo "" - ${Q}go tool cover -func "${TEST_COVERAGE_DIR}/all.merged" - .PHONY: proto ## Regenerate protobuf definitions. proto: SHARED_PROTOC_OPTS = --plugin=${PROTOC_GEN_GO} --plugin=${PROTOC_GEN_GO_GRPC} --plugin=${PROTOC_GEN_GITALY_PROTOLIST} --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative -- cgit v1.2.3