Add go test -race to make check

This commit is contained in:
Bjørn Erik Pedersen 2016-04-07 13:36:48 +02:00
parent 27f9e62bb3
commit fd5d573566

View file

@ -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; \