2017-02-03 07:52:32 -06:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
golint src/...
|
|
|
|
go fmt ./src/...
|
2017-05-18 06:27:11 -05:00
|
|
|
go tool vet --all --shadow ./src
|
2017-02-03 07:52:32 -06:00
|
|
|
gocyclo -over 12 src/
|
|
|
|
gb test
|
2017-05-23 03:12:59 -05:00
|
|
|
|
|
|
|
# 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/...
|