From 704e5d9d68a1173e9e88305d1edb27528b4d9007 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 2 May 2017 10:16:17 -0700 Subject: [PATCH] Add codecov.io --- .travis.yml | 14 +++++++++++++- README.md | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0b85dbe..8e690dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) diff --git a/README.md b/README.md index 8cd575d..3fc11ce 100644 --- a/README.md +++ b/README.md @@ -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).