Skip to content

Commit

Permalink
Added coveralls coverage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Jul 20, 2017
1 parent 4277508 commit c044cad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go:

jobs:
include:
- script: make check lint test
- script: make vet check lint coveralls
- script: PATH=bin/linux/amd64:$PATH make build acceptance
- stage: deploy
script: skip
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ $(GOPATH)/bin/glide:
$(GOPATH)/bin/golint:
go get github.com/golang/lint/golint

$(GOPATH)/bin/goveralls:
go get github.com/mattn/goveralls

$(GOPATH)/bin/errcheck:
go get -u github.com/kisielk/errcheck

Expand Down Expand Up @@ -74,9 +77,12 @@ publish: docker
vet:
go vet `glide novendor`

test: vendor
test: vendor vet lint check
go test -v -cover `glide novendor`

coveralls: vendor $(GOPATH)/bin/goveralls
goveralls -service=travis-ci

watch:
ls */*.go | entr make test

Expand Down

0 comments on commit c044cad

Please sign in to comment.