From 58c03baeb42ef9d467390c3ab97ef7d4d27fbca8 Mon Sep 17 00:00:00 2001 From: James Mills Date: Tue, 20 Jun 2017 23:48:48 -0700 Subject: [PATCH] Add CodeCov support and badge to README --- .travis.yml | 7 +++++++ README.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4f2ee4d..2915733 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,8 @@ language: go +sudo: false +go: + - tip +script: + - go test -race -coverprofile=coverage.txt -covermode=atomic +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index fd1f63d..eebced1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Gopher protocol library for Golang [![Build Status](https://travis-ci.org/prologic/go-gopher.svg)](https://travis-ci.org/prologic/go-gopher) +[![CodeCov](https://codecov.io/gh/prologic/go-gopher/branch/master/graph/badge.svg)](https://codecov.io/gh/prologic/go-gopher) [![GoDoc](https://godoc.org/github.com/prologic/go-gopher?status.svg)](https://godoc.org/github.com/prologic/go-gopher)