From dcb8068915493fa64217ffa5530f4b3d7712bee2 Mon Sep 17 00:00:00 2001 From: Priyanshu Date: Tue, 8 Jan 2019 15:19:44 +0530 Subject: [PATCH] Add coverage report and status badge --- .travis.yml | 5 +++++ README.md | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 506de5da81..c704f622db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,14 @@ go: - "1.10.x" - "1.11.4" +before_install: + - go get github.com/mattn/goveralls + script: - hack/verify-all.sh - make test - make azurefile - make azurefile-windows - make azurefile-container + - go test -covermode=count -coverprofile=profile.cov ./pkg/... + - $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci diff --git a/README.md b/README.md index ca4b224a7b..319950cd10 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # azurefile CSI driver for Kubernetes (Alpha) ![TravisCI](https://travis-ci.com/andyzhangx/azurefile-csi-driver.svg?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/andyzhangx/azurefile-csi-driver/badge.svg?branch=master)](https://coveralls.io/github/andyzhangx/azurefile-csi-driver?branch=master) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fandyzhangx%2Fazurefile-csi-driver.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fandyzhangx%2Fazurefile-csi-driver?ref=badge_shield) **WARNING**: This driver is in ALPHA currently. Do NOT use this driver in a production environment in its current state. @@ -96,4 +97,4 @@ Please refer to [development guide](./docs/csi-dev.md) ## License -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fandyzhangx%2Fazurefile-csi-driver.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fandyzhangx%2Fazurefile-csi-driver?ref=badge_large) \ No newline at end of file +[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fandyzhangx%2Fazurefile-csi-driver.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fandyzhangx%2Fazurefile-csi-driver?ref=badge_large)