Add codecov
This commit is contained in:
parent
a3af84ed27
commit
a4411e8ec8
|
@ -3,6 +3,7 @@ version: 2.1
|
|||
|
||||
orbs:
|
||||
prometheus: prometheus/prometheus@0.4.0
|
||||
codecov: codecov/codecov@1.0.5
|
||||
|
||||
executors:
|
||||
# Whenever the Go version is updated here, .promu.yml should
|
||||
|
@ -17,6 +18,9 @@ jobs:
|
|||
steps:
|
||||
- prometheus/setup_environment
|
||||
- run: make
|
||||
- run: make coverage
|
||||
- codecov/upload:
|
||||
file: coverage.txt
|
||||
- prometheus/store_artifact:
|
||||
file: cgroup_exporter
|
||||
build:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/.tarballs
|
||||
/.build
|
||||
/cgroup_exporter
|
||||
/coverage.txt
|
||||
|
|
3
Makefile
3
Makefile
|
@ -5,3 +5,6 @@ DOCKER_REPO ?= treydock
|
|||
include Makefile.common
|
||||
|
||||
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://github.com/treydock/cgroup_exporter/releases/latest)
|
||||

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