github.com/stampzilla/stampzilla-go@v2.0.0-rc9+incompatible/Makefile (about) 1 .PHONY: test cover cover-html cover-test 2 3 test: 4 go test `go list ./... | grep -v /vendor/ | grep -v stampzilla-telldus` 5 6 # todo: use this when golang issue 23910 is resolved 7 # go test -v -coverpkg=./... -coverprofile=all `go list ./... | grep -v /vendor/ ` 8 cover: 9 @echo Running coverage 10 go get github.com/wadey/gocovmerge 11 $(eval PKGS := $(shell go list ./... | grep -v /vendor/ )) 12 $(eval PKGS_DELIM := $(shell echo $(PKGS) | sed -e 's/ /,/g')) 13 go list -f '{{if or (len .TestGoFiles) (len .XTestGoFiles)}}go test -test.v -test.timeout=120s -covermode=atomic -coverprofile={{.Name}}_{{len .Imports}}_{{len .Deps}}.coverprofile -coverpkg $(PKGS_DELIM) {{.ImportPath}}{{end}}' $(PKGS) | xargs -I {} bash -c {} 14 gocovmerge `ls *.coverprofile` > coverage.txt 15 rm *.coverprofile 16 cover-normal: 17 bash coverage 18 19 cover-html: cover 20 go tool cover -html coverage.txt 21 22 build-ui: 23 cd nodes/stampzilla-server/public && gulp 24 cd nodes/stampzilla-server && go generate