mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
15 lines
431 B
Bash
Executable file
15 lines
431 B
Bash
Executable file
#! /bin/bash
|
|
|
|
set -eu
|
|
|
|
golint src/...
|
|
go fmt ./src/...
|
|
go tool vet --all --shadow ./src
|
|
gocyclo -over 12 src/
|
|
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/...
|