Skip to content

Commit

Permalink
add codecov to Circle CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed May 16, 2019
1 parent 15d705a commit 09f0e30
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage:
range: 50...80

0 comments on commit 09f0e30

Please sign in to comment.