Add go fmt to check format of code

This commit is contained in:
Iwasaki Yudai
2015-08-20 16:45:06 +09:00
parent 161d29b0b9
commit 6a43836f0b
2 changed files with 57 additions and 56 deletions

View File

@@ -8,6 +8,10 @@ build:
code: |
go get github.com/tools/godep
godep restore
- script:
name: check format
code: |
if [ `go fmt ./... | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
- tcnksm/gox:
os: "darwin linux"
arch: "amd64"