2018-04-13 10:51:28 +00:00
|
|
|
build:
|
|
|
|
go build
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -cpu 4 -v -race
|
|
|
|
|
|
|
|
# Get the build dependencies
|
|
|
|
build_dep:
|
|
|
|
go get -u github.com/kisielk/errcheck
|
|
|
|
go get -u golang.org/x/tools/cmd/goimports
|
2018-05-02 16:09:45 +00:00
|
|
|
-#go get -u github.com/golang/lint/golint
|
2018-04-13 10:51:28 +00:00
|
|
|
|
|
|
|
# Do source code quality checks
|
|
|
|
check:
|
|
|
|
go vet
|
|
|
|
errcheck
|
|
|
|
goimports -d . | grep . ; test $$? -eq 1
|
|
|
|
-#golint
|