Add coverage from codecov (#376)

This commit is contained in:
Lunny Xiao 2020-04-24 13:23:58 +08:00 committed by GitHub
parent 3c399e1b38
commit 026b4a7422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ build_config.mk
var*
*.log
bin
coverage.out

View File

@ -6,3 +6,4 @@ go:
script:
- make vet
- make test
- bash <(curl -s https://codecov.io/bash)

View File

@ -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 ./...

View File

@ -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.