From b984bd0796cfdc3fc31db2f173998bfafe52f78a Mon Sep 17 00:00:00 2001 From: Will Norris <will@willnorris.com> Date: Fri, 22 Mar 2019 08:12:18 +0000 Subject: [PATCH] upload test converage report to codecov --- .travis.yml | 5 ++++- README.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e367284..7d04822 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,7 @@ env: script: - diff -u <(echo -n) <(gofmt -d -s .) - go vet ./... - - go test -v ./... + - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 37e8916..29f3ab4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![GoDoc](https://godoc.org/willnorris.com/go/imageproxy?status.svg)](https://godoc.org/willnorris.com/go/imageproxy) [![Build Status](https://travis-ci.org/willnorris/imageproxy.svg?branch=master)](https://travis-ci.org/willnorris/imageproxy) -[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](LICENSE) +[![Test Coverage](https://codecov.io/gh/willnorris/imageproxy/branch/master/graph/badge.svg)](https://codecov.io/gh/willnorris/imageproxy) imageproxy is a caching image proxy server written in go. It features: