Skip to content

Commit b2d4752

Browse files
authored
ci: remove codeclimate coverare reporting (#1293)
1 parent 0c3d6dc commit b2d4752

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ examples/rln/rln
3939
# Test binary, built with `go test -c`
4040
*.test
4141

42-
# Output of the go coverage tool, specifically when used with LiteIDE
43-
*.out
44-
*.out.tmp
45-
coverage.html
46-
coverage.json
47-
48-
cc-test-reporter
49-
5042
# Dependency directories (remove the comment below to include it)
5143
# vendor/
5244

Makefile

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11

2-
CC_TEST_REPORTER_ID := c09efa7c67c269bfdc6f8a356785d8f7ed55c9dc2b9a1d07b78c384f55c4e527
3-
GO_HTML_COV := ./coverage.html
4-
GO_TEST_OUTFILE := ./c.out
52
CC_PREFIX := github.com/waku-org/go-waku
63

74
SHELL := bash # the shell used internally by Make
85

96
GOCMD ?= $(shell which go)
107

11-
.PHONY: all build lint lint-full test coverage build-example static-library dynamic-library test-c test-c-template mobile-android mobile-ios
8+
.PHONY: all build lint lint-full test build-example static-library dynamic-library test-c test-c-template mobile-android mobile-ios
129

1310
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
1411
detected_OS := Windows
@@ -87,31 +84,13 @@ test-with-race:
8784
${GOCMD} test -race -timeout 300s ./waku/... ./cmd/waku/server/...
8885

8986
test:
90-
${GOCMD} test -timeout 300s ./waku/... ./cmd/waku/server/... -coverprofile=${GO_TEST_OUTFILE}.tmp -coverpkg ./...
91-
cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE}
92-
${GOCMD} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV}
87+
${GOCMD} test -timeout 300s ./waku/... ./cmd/waku/server/... ./...
9388

94-
COVERAGE_FILE := ./coverage/cc-test-reporter
95-
$(COVERAGE_FILE):
96-
curl -sfL $(TEST_REPORTER_URL) --output ./coverage/cc-test-reporter #TODO: Support windows
97-
chmod +x ./coverage/cc-test-reporter
98-
99-
_before-cc: $(COVERAGE_FILE)
100-
101-
CC_TEST_REPORTER_ID=${CC_TEST_REPORTER_ID} ./coverage/cc-test-reporter before-build
102-
103-
_after-cc:
104-
GIT_COMMIT=$(git log | grep -m1 -oE '[^ ]+$') CC_TEST_REPORTER_ID=${CC_TEST_REPORTER_ID} ./coverage/cc-test-reporter after-build --prefix ${CC_PREFIX}
105-
106-
test-ci: _before-cc test _after-cc
89+
test-ci: test
10790

10891
generate:
10992
${GOCMD} generate ./...
11093

111-
coverage:
112-
${GOCMD} test -count 1 -coverprofile=coverage.out ./...
113-
${GOCMD} tool cover -html=coverage.out -o=coverage.html
114-
11594
# build a docker image for the fleet
11695
docker-image: DOCKER_IMAGE_TAG ?= latest
11796
docker-image: DOCKER_IMAGE_NAME ?= wakuorg/go-waku:$(DOCKER_IMAGE_TAG)

0 commit comments

Comments
 (0)