提交 36bcfdcd 编写于 作者: J Jeff 提交者: zryfish

add coveralls test coverage stats

上级 97ea4681
......@@ -23,7 +23,11 @@ before_script:
script:
- diff -u <(echo -n) <(gofmt -d ./pkg ./cmd ./tools)
- make openapi
- make all
- make all && $HOME/gopath/bin/goveralls -coverprofile=cover.out -service=travis-ci -repotoken $COVERALLS_TOKEN
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
deploy:
skip_cleanup: true
......
......@@ -98,7 +98,7 @@ docker-build: all
# Run tests
test: fmt vet
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=1m; go test ./pkg/... ./cmd/... -coverprofile cover.out
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=1m; go test -v ./pkg/... ./cmd/... -covermode=count -coverprofile cover.out
.PHONY: clean
clean:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册