Skip to content

Commit

Permalink
add coveralls (#3)
Browse files Browse the repository at this point in the history
* add coveralls

* added coveralls make target

* make ginkgo search all dirs
  • Loading branch information
Ethan Kaley authored and jfrey committed Aug 22, 2016
1 parent d2076da commit 10d0001
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ SLOWTEST = 10

default: deps grpc test build

coveralls:
@go get github.com/mattn/goveralls
@go get github.com/modocache/gover
@go get golang.org/x/tools/cmd/cover
@gover
@goveralls -coverprofile=gover.coverprofile -service=travis-ci

shell:
@${DOCKER_CMD} /bin/bash

Expand Down Expand Up @@ -74,7 +81,7 @@ test:
@${DOCKER_CMD} make test-local

test-local: lint-local
@ginkgo -race -trace -cover -randomizeAllSpecs --slowSpecThreshold=${SLOWTEST}
@ginkgo -r -race -trace -cover -randomizeAllSpecs --slowSpecThreshold=${SLOWTEST}

grpc:
@${DOCKER_CMD} make grpc-local
Expand All @@ -85,7 +92,7 @@ grpc-local:
protoc -I ./agent/grpc/plugin ./agent/grpc/plugin/plugin.proto --go_out=plugins=grpc:agent/grpc/plugin
rm -f ./agent/grpc/host/host.pb.go
protoc -I ./agent/grpc/host ./agent/grpc/host/host.proto --go_out=plugins=grpc:agent/grpc/host

#LLDP's GRPC
rm -f ./plugins/lldp/grpc/lldp/lldp.pb.go
protoc -I ./plugins/lldp/grpc/lldp ./plugins/lldp/grpc/lldp/lldp.proto --go_out=plugins=grpc:plugins/lldp/grpc/lldp
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.com/skunkworxs/inservice-agent.svg?token=2qgDJt8zJMZbU21sKMNz&branch=master)](https://travis-ci.com/skunkworxs/inservice-agent)

# InService Agent
[![Coverage Status](https://coveralls.io/repos/github/RackHD/inservice/badge.svg?branch=master)](https://coveralls.io/github/RackHD/inservice?branch=master)

# Inservice

0 comments on commit 10d0001

Please sign in to comment.