Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Makefile and prettify test output #167

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ env:
- GO111MODULE=on

install:
- go get github.com/mfridman/tparse
- go get github.com/mattn/goveralls
- go get github.com/lawrencewoodman/roveralls

script:
- roveralls
- goveralls -coverprofile=roveralls.coverprofile -service=travis-ci
- make check
- make coveralls
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TPARSE := $(shell tparse --version 2>/dev/null)

check:
ifdef TPARSE
go test ./... -race -cover -json | tparse -all
else
go test ./... -race -cover
endif

coveralls:
roveralls
goveralls -coverprofile=roveralls.coverprofile -service=travis-ci