Skip to content

Commit

Permalink
chore: add Makefile and prettify test output
Browse files Browse the repository at this point in the history
  • Loading branch information
linki committed Jan 10, 2020
1 parent 9a9e7ad commit 20d2950
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
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

0 comments on commit 20d2950

Please sign in to comment.