mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
652c755d37
Use golangci-lint. Repair warnings and errors resulting from linting.
28 lines
468 B
YAML
28 lines
468 B
YAML
language: go
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
|
|
go:
|
|
- 1.14.x
|
|
- 1.15.x
|
|
- tip
|
|
|
|
env: GO111MODULE=on
|
|
|
|
before_install:
|
|
- go get -u github.com/kyoh86/richgo
|
|
- go get -u github.com/mitchellh/gox
|
|
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|
|
include:
|
|
- stage: build
|
|
go: 1.14.x
|
|
script: make cobra_generator
|
|
|
|
script:
|
|
- make test
|