adding coveralls / code coverage (#112)
* adding coveralls * adding code coverage badge * fixing badges * verbose * swap tests and coverage * extra line * maybe * maybe * moar * gover maybe * testing * cleanup
This commit is contained in:
parent
281d037468
commit
f2b6c18f2a
@ -11,3 +11,6 @@ install:
|
||||
|
||||
script:
|
||||
- make test
|
||||
- go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | xargs -L 1 sh -c
|
||||
- gover
|
||||
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
|
6
Makefile
6
Makefile
@ -33,12 +33,16 @@ proto:
|
||||
|
||||
build-dev-deps:
|
||||
go get github.com/golang/protobuf/protoc-gen-go
|
||||
go get github.com/mattn/goveralls
|
||||
go get golang.org/x/tools/cmd/cover
|
||||
go get github.com/modocache/gover
|
||||
go get github.com/alecthomas/gometalinter
|
||||
gometalinter --install --force
|
||||
|
||||
test: lint
|
||||
go install -v ./...
|
||||
go test ./...
|
||||
go test -v -covermode=count -coverprofile=coverage.out ./...
|
||||
gover
|
||||
@echo done
|
||||
|
||||
build-binaries:
|
||||
|
@ -1,8 +1,9 @@
|
||||
# Storj
|
||||
|
||||
[![Go Report Card](https://goreportcard.com/badge/github.com/golang-standards/project-layout?style=flat-square)](https://goreportcard.com/report/github.com/storj/storj)
|
||||
[![Go Report Card](https://goreportcard.com/badge/github.com/storj/storj)](https://goreportcard.com/report/github.com/storj/storj)
|
||||
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/storj/storj)
|
||||
[![Release](https://img.shields.io/github/release/golang-standards/project-layout.svg?style=flat-square)](https://github.com/storj/storj/releases/latest)
|
||||
<!-- [![Release](https://img.shields.io/github/release/golang-standards/project-layout.svg?style=flat-square)](https://github.com/storj/storj/releases/latest) -->
|
||||
[![Coverage Status](https://coveralls.io/repos/github/storj/storj/badge.svg?branch=master)](https://coveralls.io/github/storj/storj?branch=master)
|
||||
|
||||
<img src="https://github.com/Storj/storj/blob/wip/logo/logo.png" width="100">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user