beego bee tool mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
846 B

3 months ago
  1. language: go
  2. go:
  3. - 1.14.6
  4. install:
  5. - export PATH=$PATH:$HOME/gopath/bin
  6. - go get -u github.com/opennota/check/cmd/structcheck
  7. - go get -u honnef.co/go/tools/cmd/staticcheck
  8. - go get -u github.com/mdempsky/unconvert
  9. - go get -u github.com/gordonklaus/ineffassign
  10. script:
  11. - pwd
  12. - cd $(dirname `dirname $(pwd)`)/beego/bee
  13. - export GO111MODULE="on"
  14. - go mod download
  15. - find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
  16. - go list ./... | grep -v /vendor/ | grep -v /pkg/mod/
  17. - go vet $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
  18. - structcheck $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
  19. - staticcheck $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
  20. - unconvert $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
  21. - ineffassign .