From 026b4a7422688844db1d0ff46175af85602c17bb Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 24 Apr 2020 13:23:58 +0800 Subject: [PATCH] Add coverage from codecov (#376) --- .gitignore | 3 ++- .travis.yml | 1 + Makefile | 2 +- README.md | 4 +++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 25f2ea8..60900af 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ nohup.out build_config.mk var* *.log -bin \ No newline at end of file +bin +coverage.out \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 911b641..dbb3369 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,4 @@ go: script: - make vet - make test + - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index 82dab6a..41fd234 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ vet: go vet -mod=vendor -tags '$(GO_BUILD_TAGS)' ./... test: - go test -mod=vendor --race -tags '$(GO_BUILD_TAGS)' -timeout 2m $$(go list ./... | grep -v -e /vendor/) + go test -mod=vendor --race -tags '$(GO_BUILD_TAGS)' -cover -coverprofile coverage.out -timeout 2m $$(go list ./... | grep -v -e /vendor/) clean: go clean -i ./... diff --git a/README.md b/README.md index 6c08de7..07abccd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # LedisDB -[![Build Status](https://travis-ci.org/ledisdb/ledisdb.svg?branch=develop)](https://travis-ci.org/ledisdb/ledisdb) +[![Build Status](https://travis-ci.org/ledisdb/ledisdb.svg?branch=develop)](https://travis-ci.org/siddontang/ledisdb) + +[![codecov](https://codecov.io/gh/ledisdb/ledisdb/branch/master/graph/badge.svg)](https://codecov.io/gh/ledisdb/ledisdb) Ledisdb is a high-performance NoSQL database, similar to Redis, written in [Go](http://golang.org/). It supports many data structures including kv, list, hash, zset, set.