Add codecov
This commit is contained in:
parent
a3af84ed27
commit
a4411e8ec8
|
@ -3,6 +3,7 @@ version: 2.1
|
||||||
|
|
||||||
orbs:
|
orbs:
|
||||||
prometheus: prometheus/prometheus@0.4.0
|
prometheus: prometheus/prometheus@0.4.0
|
||||||
|
codecov: codecov/codecov@1.0.5
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
# Whenever the Go version is updated here, .promu.yml should
|
# Whenever the Go version is updated here, .promu.yml should
|
||||||
|
@ -17,6 +18,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- prometheus/setup_environment
|
- prometheus/setup_environment
|
||||||
- run: make
|
- run: make
|
||||||
|
- run: make coverage
|
||||||
|
- codecov/upload:
|
||||||
|
file: coverage.txt
|
||||||
- prometheus/store_artifact:
|
- prometheus/store_artifact:
|
||||||
file: cgroup_exporter
|
file: cgroup_exporter
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
/.tarballs
|
/.tarballs
|
||||||
/.build
|
/.build
|
||||||
/cgroup_exporter
|
/cgroup_exporter
|
||||||
|
/coverage.txt
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -5,3 +5,6 @@ DOCKER_REPO ?= treydock
|
||||||
include Makefile.common
|
include Makefile.common
|
||||||
|
|
||||||
DOCKER_IMAGE_NAME ?= cgroup_exporter
|
DOCKER_IMAGE_NAME ?= cgroup_exporter
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
go test -race -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
[](https://circleci.com/gh/treydock/cgroup_exporter)
|
[](https://circleci.com/gh/treydock/cgroup_exporter)
|
||||||
[](https://github.com/treydock/cgroup_exporter/releases/latest)
|
[](https://github.com/treydock/cgroup_exporter/releases/latest)
|
||||||

|

|
||||||
|
[](https://codecov.io/gh/treydock/cgroup_exporter)
|
||||||
|
|
||||||
# Check mount Prometheus exporter
|
# Check mount Prometheus exporter
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue