spf13--cobra/.travis.yml
umarcor 37b6a19612 feat(travis-ci): use golangci-lint
deprecate go 1.10.x and 1.11.x
2020-01-06 19:25:47 +01:00

24 lines
446 B
YAML

language: go
stages:
- lint
- test
go:
- 1.12.x
- tip
env: GO111MODULE=on
before_install: go get -u github.com/kyoh86/richgo
script:
- richgo test -v ./...
- go build
matrix:
allow_failures:
- go: tip
include:
- stage: lint
go: 1.12.x
before_install: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
script: golangci-lint run -v