blob: 2be9b2d6f2ca3028dcecb70f0c0939f1c2dd4433 [file] [log] [blame]
---
validate_config: 1
tasks:
ubuntu1804:
environment:
GO_HOME: "$HOME/go-1.16.7"
PATH: "$PATH:$GO_HOME/bin"
shell_commands:
- "echo --- Downloading and extracting Go 1.16.7 to $GO_HOME"
- "mkdir $GO_HOME"
- "curl https://mirror.bazel.build/golang.org/dl/go1.16.7.linux-amd64.tar.gz | tar xvz --strip-components=1 -C $GO_HOME"
- "echo +++ Check go format"
- "./check-gofmt.sh `find go -name '*.go'`"
- "./check-golint.sh"
- "echo +++ Check go vet"
- "go vet ./..."
build_targets:
- "//..."
test_targets:
- "//..."
# Check that "go build / test" works, too.
ubuntu1804_gobuild:
platform: ubuntu1804
name: "go build / test"
environment:
GO_HOME: "$HOME/go-1.16.7"
PATH: "$PATH:$GO_HOME/bin"
shell_commands:
- "echo --- Downloading and extracting Go 1.16.7 to $GO_HOME"
- "mkdir $GO_HOME"
- "curl https://mirror.bazel.build/golang.org/dl/go1.16.7.linux-amd64.tar.gz | tar xvz --strip-components=1 -C $GO_HOME"
- "echo +++ Running go build"
- "go build ./..."
- "echo +++ Running go test"
- "go test ./..."