vet the go format

This commit is contained in:
pibigstar
2019-06-25 19:10:37 +08:00
parent c066fff971
commit 5ad809f49e
2 changed files with 4 additions and 8 deletions

View File

@ -22,11 +22,14 @@ addons:
before_install:
- pwd
- /bin/bash vet.sh
install:
- cat /etc/hosts
before_script:
- find . -name "*.go" | xargs gofmt -w
- git diff --exit-code
script:
- cd g
- GOARCH=386 go test -v ./...

7
vet.sh
View File

@ -1,7 +0,0 @@
#!/bin/bash
cd "${GOPATH}/src/github.com/gogf/gf"
find . -name "*.go" -not -path "./third/*" | xargs gofmt -w
git diff --exit-code