diff --git a/.travis.yml b/.travis.yml index e01a4d5..dfabacb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,5 +12,9 @@ before_install: install: - go get github.com/ceph/go-ceph - go get github.com/prometheus/client_golang/prometheus + - go get github.com/axw/gocov/gocov + - go get github.com/mattn/goveralls + - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi -script: go test -v -race ./... +script: + - $HOME/gopath/bin/goveralls -service=travis-ci ./... diff --git a/README.md b/README.md index 62c352f..1c9e2d4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ceph Exporter [![GoDoc](https://godoc.org/github.com/digitalocean/ceph_exporter?status.svg)](https://godoc.org/github.com/digitalocean/ceph_exporter) [![Build Status](https://travis-ci.org/digitalocean/ceph_exporter.svg)](https://travis-ci.org/digitalocean/ceph_exporter) +# Ceph Exporter [![GoDoc](https://godoc.org/github.com/digitalocean/ceph_exporter?status.svg)](https://godoc.org/github.com/digitalocean/ceph_exporter) [![Build Status](https://travis-ci.org/digitalocean/ceph_exporter.svg)](https://travis-ci.org/digitalocean/ceph_exporter) [![Coverage Status](https://coveralls.io/repos/github/digitalocean/ceph_exporter/badge.svg?branch=master&service=github)](https://coveralls.io/github/digitalocean/ceph_exporter?branch=master) Prometheus exporter that scrapes meta information about a running ceph cluster. All the information gathered from the cluster is done by interacting with the monitors using an appropriate wrapper over `rados_mon_command()`. Hence, no additional setup is necessary other than having a working ceph cluster. ## Dependencies