2018-12-16 11:19:16 +00:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
|
|
|
- 1.x
|
|
|
|
- tip
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
install:
|
|
|
|
- go get -t ./...
|
|
|
|
- go get golang.org/x/lint/golint
|
|
|
|
- go get github.com/alecthomas/gometalinter
|
|
|
|
|
|
|
|
script:
|
2019-06-09 00:01:48 +00:00
|
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0
|
|
|
|
- golangci-lint run --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests
|
2018-12-16 11:19:16 +00:00
|
|
|
- go test -race ./...
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- golint ./...
|