diff --git a/.travis.yml b/.travis.yml index a92b0c8f..0ac5eaf5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..5ccaaffc --- /dev/null +++ b/Makefile @@ -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