Merge pull request #90 from reactiveops/rb/add-badges

add codecov to Circle CI
This commit is contained in:
Bobby Brennan
2019-05-16 16:29:35 -04:00
committed by GitHub
3 changed files with 12 additions and 2 deletions

View File

@@ -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:

View File

@@ -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:

2
codecov.yml Normal file
View File

@@ -0,0 +1,2 @@
coverage:
range: 50...80