Skip to content

Commit

Permalink
(coverage) merge coverage.txt file, add codecov badge and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Dec 2, 2017
1 parent 8ec6b6d commit cd588ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ script:
- ssh-add ~/.ssh/id_rsa
- make test

after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
provider: script
script: curl -sL https://git.io/goreleaser | bash
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ test:

internal-test:
mv testdata/test.git testdata/.git
go test ./...
go test -coverprofile=coverage-git.out -covermode=count github.com/zaquestion/lab/internal/git
go test -coverprofile=coverage-gitlab.out -covermode=count github.com/zaquestion/lab/internal/gitlab
go test github.com/zaquestion/lab/cmd
mv testdata/.git testdata/test.git
go get github.com/wadey/gocovmerge
gocovmerge coverage-*.out > coverage.txt && rm coverage-*.out
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# git + lab = gitlab [![Build Status](https://travis-ci.org/zaquestion/lab.svg?branch=master)](https://travis-ci.org/zaquestion/lab) [![Join the chat at https://gitter.im/labcli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/labcli) [![Go Report Card](https://goreportcard.com/badge/github.com/zaquestion/lab)](https://goreportcard.com/report/github.com/zaquestion/lab)
# git + lab = gitlab [![Build Status](https://travis-ci.org/zaquestion/lab.svg?branch=master)](https://travis-ci.org/zaquestion/lab) [![codecov](https://codecov.io/gh/zaquestion/lab/branch/master/graph/badge.svg)](https://codecov.io/gh/zaquestion/lab)
[![Go Report Card](https://goreportcard.com/badge/github.com/zaquestion/lab)](https://goreportcard.com/report/github.com/zaquestion/lab) [![Join the chat at https://gitter.im/labcli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/labcli)

lab wraps git or [hub](https://github.com/github/hub) and adds additional features to make working with GitLab smoother

Expand Down

0 comments on commit cd588ab

Please sign in to comment.