feat: add debugging and use go get to grab godacov
This commit is contained in:
1 parent
42cd2ae4bc
commit
4a7edc234a
1 file changed
+6
-1
@@ -144,10 +144,15 @@ ci-go-coverage-plugin:
|
|||||||
-w $(GO_REPO_ROOT) \
|
-w $(GO_REPO_ROOT) \
|
||||||
$(BUILD_IMAGE) \
|
$(BUILD_IMAGE) \
|
||||||
bash -c "cd plugins/$(PLUGIN_NAME) && \
|
bash -c "cd plugins/$(PLUGIN_NAME) && \
|
||||||
|
echo 'installing gomega' && \
|
||||||
go get github.com/onsi/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 && \
|
go install github.com/haya14busa/goverage && \
|
||||||
|
echo 'running goverage' && \
|
||||||
goverage -v -coverprofile=./../../test-results/coverage/$(PLUGIN_NAME).out && \
|
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 $$?
|
(godacov -r ./../../test-results/coverage/$(PLUGIN_NAME).out -c $$CIRCLE_SHA1 -t $$CODACY_TOKEN || true)" || exit $$?
|
||||||
|
|
||||||
go-tests:
|
go-tests:
|
||||||
|
|||||||
Reference in new issue
Block a user