Add go test -race to make check
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 7 Apr 2016 11:36:48 +0000 (13:36 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 7 Apr 2016 11:36:48 +0000 (13:36 +0200)
Makefile

index f4dfe0dadf587fb7e4731e5cf11c0dad2f505d2e..6dcde3c03dab3c20f9f07a7e70ba359aa5297341 100644 (file)
--- 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; \