From 6b82da13b4eff794bd9e79e39064546b811cefc2 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 19 Apr 2014 14:36:16 -0500 Subject: [PATCH] Setup TravisCI to report cov stats to coveralls.io. Also add a coveralls.io test coverage badge to the README. --- .travis.yml | 5 +++++ README.md | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 59c603be..9c1637bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,8 @@ go: - release - tip install: go get -d -t -v ./... +script: go test -v -covermode=count -coverprofile=profile.cov +after_success: + - go get -v github.com/mattn/goveralls + - export PATH=$PATH:$HOME/gopath/bin + - goveralls -coverprofile=profile.cov -service=travis-ci diff --git a/README.md b/README.md index 5834bd01..7e15e7de 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ btcwire ======= [![Build Status](https://travis-ci.org/conformal/btcwire.png?branch=master)] -(https://travis-ci.org/conformal/btcwire) +(https://travis-ci.org/conformal/btcwire) [![Coverage Status] +(https://coveralls.io/repos/conformal/btcwire/badge.png?branch=master)] +(https://coveralls.io/r/conformal/btcwire?branch=master) Package btcwire implements the bitcoin wire protocol. A comprehensive suite of tests with 100% test coverage is provided to ensure proper functionality. See