mirror of
https://github.com/beego/bee.git
synced 2024-11-14 17:00:54 +00:00
18 lines
645 B
YAML
18 lines
645 B
YAML
language: go
|
|
go:
|
|
- 1.11.9
|
|
- 1.12.4
|
|
install:
|
|
- export PATH=$PATH:$HOME/gopath/bin
|
|
- go get -u github.com/opennota/check/cmd/structcheck
|
|
- go get -u honnef.co/go/tools/cmd/staticcheck
|
|
- go get -u github.com/mdempsky/unconvert
|
|
- go get -u github.com/gordonklaus/ineffassign
|
|
script:
|
|
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
- structcheck $(go list ./... | grep -v /vendor/)
|
|
- staticcheck -ignore "$(cat staticcheck.ignore)" $(go list ./... | grep -v /vendor/)
|
|
- unconvert $(go list ./... | grep -v /vendor/)
|
|
- ineffassign .
|