mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-14 07:41:40 +00:00
Call 'go build' from the pre-commit hook to check that everything builds (#116)
This commit is contained in:
parent
a7acfa5546
commit
309300a744
@ -7,3 +7,9 @@ go fmt ./src/...
|
|||||||
go tool vet --all --shadow ./src
|
go tool vet --all --shadow ./src
|
||||||
gocyclo -over 12 src/
|
gocyclo -over 12 src/
|
||||||
gb test
|
gb test
|
||||||
|
|
||||||
|
# Check that all the packages can build.
|
||||||
|
# When `go build` is given multiple packages it won't output anything, and just
|
||||||
|
# checks that everything builds. This seems to do a better job of handling
|
||||||
|
# missing imports than `gb build` does.
|
||||||
|
GOPATH=$(pwd):$(pwd)/vendor go build github.com/matrix-org/dendrite/cmd/...
|
||||||
|
Loading…
Reference in New Issue
Block a user