ci: remove codeclimate coverare reporting

This commit is contained in:
Igor Sirotin 2025-10-01 15:09:18 +01:00
parent 0c3d6dc0a8
commit 97852f1cd1
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A
2 changed files with 3 additions and 32 deletions

8
.gitignore vendored
View File

@ -39,14 +39,6 @@ examples/rln/rln
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
*.out.tmp
coverage.html
coverage.json
cc-test-reporter
# Dependency directories (remove the comment below to include it)
# vendor/

View File

@ -1,14 +1,11 @@
CC_TEST_REPORTER_ID := c09efa7c67c269bfdc6f8a356785d8f7ed55c9dc2b9a1d07b78c384f55c4e527
GO_HTML_COV := ./coverage.html
GO_TEST_OUTFILE := ./c.out
CC_PREFIX := github.com/waku-org/go-waku
SHELL := bash # the shell used internally by Make
GOCMD ?= $(shell which go)
.PHONY: all build lint lint-full test coverage build-example static-library dynamic-library test-c test-c-template mobile-android mobile-ios
.PHONY: all build lint lint-full test build-example static-library dynamic-library test-c test-c-template mobile-android mobile-ios
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
detected_OS := Windows
@ -87,31 +84,13 @@ test-with-race:
${GOCMD} test -race -timeout 300s ./waku/... ./cmd/waku/server/...
test:
${GOCMD} test -timeout 300s ./waku/... ./cmd/waku/server/... -coverprofile=${GO_TEST_OUTFILE}.tmp -coverpkg ./...
cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE}
${GOCMD} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV}
${GOCMD} test -timeout 300s ./waku/... ./cmd/waku/server/... ./...
COVERAGE_FILE := ./coverage/cc-test-reporter
$(COVERAGE_FILE):
curl -sfL $(TEST_REPORTER_URL) --output ./coverage/cc-test-reporter #TODO: Support windows
chmod +x ./coverage/cc-test-reporter
_before-cc: $(COVERAGE_FILE)
CC_TEST_REPORTER_ID=${CC_TEST_REPORTER_ID} ./coverage/cc-test-reporter before-build
_after-cc:
GIT_COMMIT=$(git log | grep -m1 -oE '[^ ]+$') CC_TEST_REPORTER_ID=${CC_TEST_REPORTER_ID} ./coverage/cc-test-reporter after-build --prefix ${CC_PREFIX}
test-ci: _before-cc test _after-cc
test-ci: test
generate:
${GOCMD} generate ./...
coverage:
${GOCMD} test -count 1 -coverprofile=coverage.out ./...
${GOCMD} tool cover -html=coverage.out -o=coverage.html
# build a docker image for the fleet
docker-image: DOCKER_IMAGE_TAG ?= latest
docker-image: DOCKER_IMAGE_NAME ?= wakuorg/go-waku:$(DOCKER_IMAGE_TAG)