mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
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) \
|
||||
-w $(GO_REPO_ROOT) \
|
||||
$(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:
|
||||
@echo running go unit tests...
|
||||
@@ -90,9 +92,8 @@ go-tests:
|
||||
-v $$PWD:$(GO_REPO_ROOT) \
|
||||
-w $(GO_REPO_ROOT) \
|
||||
$(BUILD_IMAGE) \
|
||||
bash -c "go get github.com/onsi/gomega github.com/haya14busa/goverage && \
|
||||
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs go test -v -p 1 -race && \
|
||||
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs goverage -v -coverprofile=coverage.out" || exit $$?
|
||||
bash -c "go get github.com/onsi/gomega && \
|
||||
go list ./... | egrep -v '/vendor/|/tests/apps/' | xargs go test -v -p 1 -race" || exit $$?
|
||||
|
||||
unit-tests: go-tests
|
||||
@echo running bats unit tests...
|
||||
|
||||
Reference in New Issue
Block a user