2018-12-05 00:27:42 -08:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
2019-09-15 14:43:44 -07:00
|
|
|
# Install dependencies.
|
|
|
|
|
go mod download
|
2018-12-05 00:53:16 -08:00
|
|
|
|
2019-01-13 11:40:44 -08:00
|
|
|
# Standalone version of the asmdecl analysis tool.
|
|
|
|
|
go install ./internal/cmd/asmdecl
|
|
|
|
|
|
2018-12-05 00:27:42 -08:00
|
|
|
# Install golangci-lint
|
2019-09-15 14:43:44 -07:00
|
|
|
golangci_lint_version='v1.18.0'
|
2018-12-05 00:27:42 -08:00
|
|
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
|
2018-12-31 20:25:29 -08:00
|
|
|
|
2019-09-15 14:43:44 -07:00
|
|
|
# Turn off modules for tools install.
|
|
|
|
|
export GO111MODULE=off
|
|
|
|
|
|
2018-12-31 20:25:29 -08:00
|
|
|
# embedmd required for documentation generation
|
|
|
|
|
go get -u github.com/campoy/embedmd
|
2019-01-02 20:41:59 -08:00
|
|
|
|
|
|
|
|
# covertool for merging coverage reports
|
|
|
|
|
go get -u github.com/dlespiau/covertool
|
2019-01-10 21:31:04 -08:00
|
|
|
|
|
|
|
|
# asmfmt for enforcing assembly style
|
2019-01-10 21:48:26 -08:00
|
|
|
go get -u github.com/klauspost/asmfmt/cmd/asmfmt
|
2019-07-30 18:40:47 -07:00
|
|
|
|
|
|
|
|
# gofumports for stricter formatting
|
|
|
|
|
go get -u mvdan.cc/gofumpt/gofumports
|