瀏覽代碼

Merge pull request #196 from Shopify/go_fmt

Add `go fmt` to build
Evan Huus 11 年之前
父節點
當前提交
63ff261f38
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -16,6 +16,7 @@ before_install:
 
 script:
 - go test -v -race ./...
+- if [[ -n $(go fmt ./...) ]]; then echo "Please run go fmt on your code." && exit 1; fi
 
 notifications:
   flowdock: 15e08f7ed3a8fd2d89ddb36435301c1a