From: Bjørn Erik Pedersen Date: Thu, 7 Apr 2016 11:36:48 +0000 (+0200) Subject: Add go test -race to make check X-Git-Tag: v0.16~121 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fd5d5735;p=brevno-suite%2Fhugo Add go test -race to make check --- diff --git a/Makefile b/Makefile index f4dfe0da..6dcde3c0 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ docker: docker rm hugo-build -check: fmt vet test +check: fmt vet test test-race cyclo: @for d in $(DIRS) ; do \ @@ -59,6 +59,9 @@ lint: test: go test ./... +test-race: + go test -race ./... + vet: @if [ "`go vet ./... | tee /dev/stderr`" ]; then \ echo "^ go vet errors!" && echo && exit 1; \