diff --git a/.travis.yml b/.travis.yml index 641e6286..66ee1f6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ language: csharp install: - sudo apt-get install nunit + - npm install -g codecov + - pip install gcovr before_script: @@ -10,4 +12,8 @@ before_script: script: - - make build-and-test \ No newline at end of file + - make build-and-test + - gcovr -r . --html --html-details -o coverage.html + - codecov + + diff --git a/Makefile b/Makefile index 7f08c751..f8e59a8f 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,4 @@ build-and-test: xbuild src/Qiniu.sln - nunit-console bin/QiniuTests.dll + nunit-console /result:console-test.xml bin/QiniuTests.dll diff --git a/README.md b/README.md index 620601ba..8cc6b5e0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # Qiniu (Cloud) C# SDK +[![LICENSE](https://img.shields.io/github/license/qiniu/csharp-sdk.svg)](https://github.com/qiniu/csharp-sdk/blob/master/LICENSE) +[![Build Status](https://travis-ci.org/qiniu/csharp-sdk.svg?branch=master)](https://travis-ci.org/qiniu/csharp-sdk) +[![GitHub release](https://img.shields.io/github/v/tag/qiniu/csharp-sdk.svg?label=release)](https://github.com/qiniu/csharp-sdk/releases) +[![Coverage Status](https://codecov.io/gh/qiniu/csharp-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/csharp-sdk) + ## 使用 * 参考文档:[七牛云存储 C# SDK 使用指南](https://developer.qiniu.com/kodo/sdk/1237/csharp)