mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Use gotestsum in Lefthook when possible
This commit is contained in:
@@ -10,4 +10,8 @@ fi
|
|||||||
export CGO_LDFLAGS_ALLOW="-s|-w"
|
export CGO_LDFLAGS_ALLOW="-s|-w"
|
||||||
export CGO_CFLAGS_ALLOW="-Xpreprocessor"
|
export CGO_CFLAGS_ALLOW="-Xpreprocessor"
|
||||||
|
|
||||||
go test ./...
|
if [ -x "$(which gotestsum)" ]; then
|
||||||
|
gotestsum ./...
|
||||||
|
else
|
||||||
|
go test -v ./...
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user