Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Feb 20, 2020
1 parent a3af84e commit a4411e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1

orbs:
prometheus: prometheus/[email protected]
codecov: codecov/[email protected]

executors:
# Whenever the Go version is updated here, .promu.yml should
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.tarballs
/.build
/cgroup_exporter
/coverage.txt
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Build Status](https://circleci.com/gh/treydock/cgroup_exporter/tree/master.svg?style=shield)](https://circleci.com/gh/treydock/cgroup_exporter)
[![GitHub release](https://img.shields.io/github/v/release/treydock/cgroup_exporter?include_prereleases&sort=semver)](https://github.com/treydock/cgroup_exporter/releases/latest)
![GitHub All Releases](https://img.shields.io/github/downloads/treydock/cgroup_exporter/total)
[![codecov](https://codecov.io/gh/treydock/cgroup_exporter/branch/master/graph/badge.svg)](https://codecov.io/gh/treydock/cgroup_exporter)

# Check mount Prometheus exporter

Expand Down

0 comments on commit a4411e8

Please sign in to comment.