feat: add debugging and use go get to grab godacov

This commit is contained in:
Jose Diaz-Gonzalez
2022-11-02 15:45:33 -04:00
parent 42cd2ae4bc
commit 4a7edc234a

View File

@@ -144,10 +144,15 @@ ci-go-coverage-plugin:
-w $(GO_REPO_ROOT) \
$(BUILD_IMAGE) \
bash -c "cd plugins/$(PLUGIN_NAME) && \
echo 'installing gomega' && \
go get github.com/onsi/gomega && \
go install github.com/schrej/godacov && \
echo 'installing godacov' && \
go get github.com/schrej/godacov && \
echo 'installing goverage' && \
go install github.com/haya14busa/goverage && \
echo 'running goverage' && \
goverage -v -coverprofile=./../../test-results/coverage/$(PLUGIN_NAME).out && \
echo 'running godacov' && \
(godacov -r ./../../test-results/coverage/$(PLUGIN_NAME).out -c $$CIRCLE_SHA1 -t $$CODACY_TOKEN || true)" || exit $$?
go-tests: