Files
avo/script/bootstrap
Michael McLoughlin 0bcbe82731 ci: fix build for go 1.13 (#96)
Updates modules handling so build passes in Go 1.13. Bypasses modules for tools install in bootstrap. Upgrades golangci-lint version to avoid bug with v1.17.1 under Go 1.13.

Fixes #95
2019-09-15 14:43:44 -07:00

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.18.0'
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