mirror of
https://github.com/beego/bee.git
synced 2024-11-16 05:10:53 +00:00
9433a7b66f
2. generate,migrate命令不再打印GOPATH. 3. pack命令排除。 4. run命令支持传递ldflags参数 5. fix watch file bug.ignoredFilesRegExps数组对每个文件增加$,防止目录存在tmp的情况 6. getPackagePath函数被调用时如果找不到GOPATH,则看看工程有没有go.mod 有就当做go module项目处理。 7. .travis.yml检查时排除/pkg/mod/目录
22 lines
847 B
YAML
22 lines
847 B
YAML
language: go
|
|
go:
|
|
- 1.12.17
|
|
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:
|
|
- pwd
|
|
- cd $(dirname `dirname $(pwd)`)/beego/bee
|
|
- export GO111MODULE="on"
|
|
- go mod download
|
|
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
|
|
- 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/ )
|
|
- ineffassign .
|