mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add go test -race to make check
This commit is contained in:
parent
27f9e62bb3
commit
fd5d573566
1 changed files with 4 additions and 1 deletions
5
Makefile
5
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; \
|
||||
|
|
Loading…
Reference in a new issue