Add go 1.14 to CI testing. Upgrade golang.org/x/tools dependency to resolve golang/go#37617.
27 lines
722 B
Bash
Executable File
27 lines
722 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
# Install dependencies.
|
|
go mod download
|
|
|
|
# Standalone version of the asmdecl analysis tool.
|
|
go install ./internal/cmd/asmdecl
|
|
|
|
# Install golangci-lint
|
|
golangci_lint_version='v1.23.6'
|
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${golangci_lint_version}
|
|
|
|
# Turn off modules for tools install.
|
|
export GO111MODULE=off
|
|
|
|
# embedmd required for documentation generation
|
|
go get -u github.com/campoy/embedmd
|
|
|
|
# covertool for merging coverage reports
|
|
go get -u github.com/dlespiau/covertool
|
|
|
|
# asmfmt for enforcing assembly style
|
|
go get -u github.com/klauspost/asmfmt/cmd/asmfmt
|
|
|
|
# gofumports for stricter formatting
|
|
go get -u mvdan.cc/gofumpt/gofumports
|