2019-05-29 14:17:00 +00:00
|
|
|
steps:
|
|
|
|
- command:
|
2019-06-19 13:05:03 +00:00
|
|
|
# https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
|
|
|
|
- "GOGC=20 ./scripts/find-lint.sh"
|
|
|
|
label: "\U0001F9F9 Lint / :go: 1.12"
|
|
|
|
agents:
|
|
|
|
# Use a larger instance as linting takes a looot of memory
|
|
|
|
queue: "medium"
|
2019-05-29 14:17:00 +00:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-06-19 13:05:03 +00:00
|
|
|
image: "golang:1.12"
|
|
|
|
|
|
|
|
- wait
|
2019-05-29 14:17:00 +00:00
|
|
|
|
|
|
|
- command:
|
2019-06-19 13:05:03 +00:00
|
|
|
- "go build ./cmd/..."
|
|
|
|
label: "\U0001F528 Build / :go: 1.11"
|
2019-05-29 14:17:00 +00:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-06-19 13:05:03 +00:00
|
|
|
image: "golang:1.11"
|
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: 128
|
|
|
|
limit: 3
|
2019-05-29 14:17:00 +00:00
|
|
|
|
|
|
|
- command:
|
|
|
|
- "go build ./cmd/..."
|
2019-06-19 13:05:03 +00:00
|
|
|
label: "\U0001F528 Build / :go: 1.12"
|
2019-05-29 14:17:00 +00:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-06-19 13:05:03 +00:00
|
|
|
image: "golang:1.12"
|
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: 128
|
|
|
|
limit: 3
|
2019-05-29 14:17:00 +00:00
|
|
|
|
|
|
|
- command:
|
|
|
|
- "go test ./..."
|
2019-06-19 13:05:03 +00:00
|
|
|
label: "\U0001F9EA Unit tests / :go: 1.11"
|
2019-05-29 14:17:00 +00:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-06-19 13:05:03 +00:00
|
|
|
image: "golang:1.11"
|
2019-05-29 14:17:00 +00:00
|
|
|
|
|
|
|
- command:
|
2019-06-19 13:05:03 +00:00
|
|
|
- "go test ./..."
|
|
|
|
label: "\U0001F9EA Unit tests / :go: 1.12"
|
2019-05-29 14:17:00 +00:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-06-19 13:05:03 +00:00
|
|
|
image: "golang:1.12"
|