Merge pull request #681 from codysoyland/coverage-fix

Add `-n` to tail command for GNU-tail compatibility
This commit is contained in:
Cody Soyland 2017-06-26 17:42:33 -04:00 committed by GitHub
commit 9f7f3d7bf8

View file

@ -48,7 +48,7 @@ cover-pkg:
mkdir -p build/coverage
touch build/coverage/$(subst /,-,$(PKG)).out
go test -coverprofile=build/coverage/$(subst /,-,$(PKG)).out $(PKG)
tail +2 build/coverage/$(subst /,-,$(PKG)).out >> build/coverage/all.out
tail -n +2 build/coverage/$(subst /,-,$(PKG)).out >> build/coverage/all.out
cover-viz: cover
go tool cover -html=build/coverage/all.out