mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-24 21:52:05 +00: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
|
docker rm hugo-build
|
||||||
|
|
||||||
|
|
||||||
check: fmt vet test
|
check: fmt vet test test-race
|
||||||
|
|
||||||
cyclo:
|
cyclo:
|
||||||
@for d in $(DIRS) ; do \
|
@for d in $(DIRS) ; do \
|
||||||
|
@ -59,6 +59,9 @@ lint:
|
||||||
test:
|
test:
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
|
test-race:
|
||||||
|
go test -race ./...
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@if [ "`go vet ./... | tee /dev/stderr`" ]; then \
|
@if [ "`go vet ./... | tee /dev/stderr`" ]; then \
|
||||||
echo "^ go vet errors!" && echo && exit 1; \
|
echo "^ go vet errors!" && echo && exit 1; \
|
||||||
|
|
Loading…
Reference in a new issue