2016-01-25 13:49:49 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2020-06-03 01:30:28 +00:00
|
|
|
- 1.11.13
|
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/staticcheck
|
|
|
|
- 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:
|
2020-06-03 01:46:48 +00:00
|
|
|
- pwd
|
2020-06-03 02:48:23 +00:00
|
|
|
- test ! -d $(dirname `dirname $(pwd)`)/beego/bee && mkdir -p $(dirname `dirname $(pwd)`)/beego/bee
|
2020-06-03 01:46:48 +00:00
|
|
|
- cp -rf ./ $(dirname `dirname $(pwd)`)/beego/bee
|
2020-06-03 02:05:38 +00:00
|
|
|
- cd $(dirname `dirname $(pwd)`)/beego/bee
|
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-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
|
|
|
- unconvert $(go list ./... | grep -v /vendor/)
|
2017-04-28 14:53:38 +00:00
|
|
|
- ineffassign .
|