Add badges to README.md and upload code coverage to codecov.io.
diff --git a/.circleci/config.yml b/.circleci/config.yml
index f2a8afe..e1a7baf 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -18,10 +18,12 @@
name: Test include Codecoverage
command: |
trap "go-junit-report < /tmp/go-test-output > /tmp/test-results/go-test-report.xml" EXIT
- go test ./unittest/... -coverprofile=/tmp/coverage -v | tee /tmp/go-test-output
+ go test ./unittest/... -coverprofile=/tmp/coverage -v -covermode=atomic | tee /tmp/go-test-output
- run:
- name: Convert coverage to html
- command: go tool cover -html=/tmp/coverage -o /tmp/test-artifacts/coverage.html
+ name: Convert coverage to correct artifacts
+ command: |
+ go tool cover -html=/tmp/coverage -o /tmp/test-artifacts/coverage.html
+ bash <(curl -s https://codecov.io/bash) -f /tmp/coverage
- run:
name: Check formated
command: "! gofmt -l . 2>&1 | read"
diff --git a/README.md b/README.md
index 0201a5a..5c83171 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,9 @@
# helm unittest
+[![CircleCI](https://circleci.com/gh/quintush/helm-unittest.svg?style=svg)](https://circleci.com/gh/quintush/helm-unittest)
+[![Go Report Card](https://goreportcard.com/badge/github.com/quintush/helm-unittest)](https://goreportcard.com/report/github.com/quintush/helm-unittest)
+[![codecov](https://codecov.io/gh/quintush/helm-unittest/branch/master/graph/badge.svg)](https://codecov.io/gh/quintush/helm-unittest)
+
Unit test for *helm chart* in YAML to keep your chart consistent and robust!
Feature:
@@ -27,7 +31,7 @@
## Install
```
-$ helm plugin install https://github.com/lrills/helm-unittest
+$ helm plugin install https://github.com/quintush/helm-unittest
```
It will install the latest version of binary into helm plugin directory.