From 5f98a665a5e801d07cd6289edb7775bd90d6dc7b Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 6 Jun 2019 17:16:32 +0200 Subject: [PATCH] Add code coverage --- .travis.yml | 5 ++++- README.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7127b62d..8540ad11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,7 @@ env: before_install: - make deps script: - - make test \ No newline at end of file + - make test + - go test -race -coverprofile=coverage.txt -covermode=atomic +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 9fd255b7..a48d470e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ # luet - Package manager +[![Go Report Card](https://goreportcard.com/badge/github.com/mudler/luet)](https://goreportcard.com/report/github.com/mudler/luet) +[![Build Status](https://travis-ci.org/mudler/luet.svg?branch=master)](https://travis-ci.org/mudler/luet) +[![GoDoc](https://godoc.org/github.com/mudler/luet?status.svg)](https://godoc.org/github.com/mudler/luet) +[![codecov](https://codecov.io/gh/mudler/luet/branch/master/graph/badge.svg)](https://codecov.io/gh/mudler/luet) No dep hell for your own package manager !