mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-12 04:06:44 +00:00
Merge pull request #90 from reactiveops/rb/add-badges
add codecov to Circle CI
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
2
codecov.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
coverage:
|
||||
range: 50...80
|
||||
Reference in New Issue
Block a user