Add codecov.io

This commit is contained in:
Tianon Gravi 2017-05-02 10:16:17 -07:00
parent 5c0cbe7322
commit 704e5d9d68
2 changed files with 14 additions and 2 deletions

View File

@ -8,4 +8,16 @@ go:
- 1.6.x
script:
- go test -v -race -cover ./...
- |
set -e +x
rm -f coverage.txt
for d in $(go list ./...); do
( set -x; go test -v -race -cover -coverprofile=profile.out -covermode=atomic "$d" )
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
after_script:
- bash <(curl -s https://codecov.io/bash)

View File

@ -1,5 +1,5 @@
# `import "github.com/docker-library/go-dockerlibrary/manifest"`
[![Travis Build Status](https://travis-ci.org/docker-library/go-dockerlibrary.svg?branch=master)](https://travis-ci.org/docker-library/go-dockerlibrary) [![GoDoc](https://godoc.org/github.com/docker-library/go-dockerlibrary?status.svg)](https://godoc.org/github.com/docker-library/go-dockerlibrary)
[![Travis Build Status](https://travis-ci.org/docker-library/go-dockerlibrary.svg?branch=master)](https://travis-ci.org/docker-library/go-dockerlibrary) [![GoDoc](https://godoc.org/github.com/docker-library/go-dockerlibrary?status.svg)](https://godoc.org/github.com/docker-library/go-dockerlibrary) [![codecov](https://codecov.io/gh/docker-library/go-dockerlibrary/branch/master/graph/badge.svg)](https://codecov.io/gh/docker-library/go-dockerlibrary)
This package contains the core parsing elements of [the `bashbrew` tool used by the Docker Official Images](https://github.com/docker-library/official-images/tree/master/bashbrew).