diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ef64a2b..eec97f81 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,13 @@ references: docker tag $REPO:dev-$CIRCLE_SHA1 $REPO:$CIRCLE_TAG docker push $REPO:$CIRCLE_TAG + update_coverage: &update_coverage + run: + name: Update Coverage + command: | + go test ./pkg/... -coverprofile=coverage.txt -covermode=count + bash <(curl -s https://codecov.io/bash) + jobs: build: docker: @@ -50,6 +57,7 @@ jobs: - run: go get -u golang.org/x/lint/golint - run: go list ./... | grep -v vendor | xargs golint -set_exit_status - run: go list ./... | grep -v vendor | xargs go vet + - *update_coverage test-deploy: docker: diff --git a/README.md b/README.md index 8490d8eb..dbdfef5b 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ [version-image]: https://img.shields.io/static/v1.svg?label=Version&message=0.1.0&color=239922 [version-link]: https://github.com/reactiveops/polaris -[circleci-link]: https://circleci.com/gh/reactiveops/polaris.svg +[goreport-image]: https://goreportcard.com/badge/github.com/reactiveops/polaris [goreport-link]: https://goreportcard.com/report/github.com/reactiveops/polaris [circleci-image]: https://circleci.com/gh/reactiveops/polaris.svg?style=svg -[goreport-image]: https://goreportcard.com/badge/github.com/reactiveops/polaris +[circleci-link]: https://circleci.com/gh/reactiveops/polaris.svg Polaris helps keep your cluster healthy. It runs a variety of checks to ensure that Kubernetes deployments are configured using best practices that will avoid potential problems in the future. The project includes two primary components: diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..162d2516 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +coverage: + range: 50...80