2016-01-25 13:49:49 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2020-10-15 13:40:16 +00:00
|
|
|
- 1.14.6
|
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-25 14:29:27 +00:00
|
|
|
- pwd
|
|
|
|
- cd $(dirname `dirname $(pwd)`)/beego/bee
|
|
|
|
- export GO111MODULE="on"
|
|
|
|
- go mod download
|
2021-02-06 12:22:05 +00:00
|
|
|
- go test -coverprofile=coverage.txt -covermode=atomic ./...
|
2017-04-28 12:36:44 +00:00
|
|
|
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
|
2020-06-25 14:29:27 +00:00
|
|
|
- go list ./... | grep -v /vendor/ | grep -v /pkg/mod/
|
|
|
|
- go vet $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
|
|
|
|
- structcheck $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
|
|
|
|
- staticcheck $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
|
|
|
|
- unconvert $(go list ./... | grep -v /vendor/ | grep -v /pkg/mod/ )
|
2017-04-28 14:53:38 +00:00
|
|
|
- ineffassign .
|