move coverage command to only run on ci
This commit is contained in:
9
tests.mk
9
tests.mk
@@ -81,7 +81,9 @@ ci-go-coverage:
|
|||||||
-v $$PWD:$(GO_REPO_ROOT) \
|
-v $$PWD:$(GO_REPO_ROOT) \
|
||||||
-w $(GO_REPO_ROOT) \
|
-w $(GO_REPO_ROOT) \
|
||||||
$(BUILD_IMAGE) \
|
$(BUILD_IMAGE) \
|
||||||
bash -c "go get github.com/schrej/godacov && godacov -t $$CODACY_TOKEN -r ./coverage.out -c $$CIRCLE_SHA1" || exit $$?
|
bash -c "go get github.com/schrej/godacov github.com/haya14busa/goverage && \
|
||||||
|
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs goverage -v -coverprofile=coverage.out && \
|
||||||
|
godacov -t $$CODACY_TOKEN -r ./coverage.out -c $$CIRCLE_SHA1" || exit $$?
|
||||||
|
|
||||||
go-tests:
|
go-tests:
|
||||||
@echo running go unit tests...
|
@echo running go unit tests...
|
||||||
@@ -90,9 +92,8 @@ go-tests:
|
|||||||
-v $$PWD:$(GO_REPO_ROOT) \
|
-v $$PWD:$(GO_REPO_ROOT) \
|
||||||
-w $(GO_REPO_ROOT) \
|
-w $(GO_REPO_ROOT) \
|
||||||
$(BUILD_IMAGE) \
|
$(BUILD_IMAGE) \
|
||||||
bash -c "go get github.com/onsi/gomega github.com/haya14busa/goverage && \
|
bash -c "go get github.com/onsi/gomega && \
|
||||||
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs go test -v -p 1 -race && \
|
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs go test -v -p 1 -race" || exit $$?
|
||||||
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs goverage -v -coverprofile=coverage.out" || exit $$?
|
|
||||||
|
|
||||||
unit-tests: go-tests
|
unit-tests: go-tests
|
||||||
@echo running bats unit tests...
|
@echo running bats unit tests...
|
||||||
|
|||||||
Reference in New Issue
Block a user