1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 13:30:53 +00:00
bee/.travis.yml

21 lines
853 B
YAML
Raw Normal View History

language: go
go:
2018-07-21 15:06:23 +00:00
- 1.10.3
2017-03-11 09:03:45 +00:00
install:
- export PATH=$PATH:$HOME/gopath/bin
- go get -u github.com/opennota/check/cmd/structcheck
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/unused
- go get -u github.com/mdempsky/unconvert
2017-04-28 14:53:38 +00:00
- go get -u github.com/gordonklaus/ineffassign
2017-03-11 09:03:45 +00:00
script:
2017-04-28 12:36:44 +00:00
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
2017-03-11 09:03:45 +00:00
- go vet $(go list ./... | grep -v /vendor/)
- structcheck $(go list ./... | grep -v /vendor/)
2017-04-02 22:01:23 +00:00
- gosimple -ignore "$(cat gosimple.ignore)" $(go list ./... | grep -v /vendor/)
2017-05-14 22:32:45 +00:00
- staticcheck -ignore "$(cat staticcheck.ignore)" $(go list ./... | grep -v /vendor/)
2017-03-11 09:03:45 +00:00
- unused $(go list ./... | grep -v /vendor/)
- unconvert $(go list ./... | grep -v /vendor/)
2017-04-28 14:53:38 +00:00
- ineffassign .