Created
November 13, 2019 11:46
-
-
Save GivenZeng/606a96dc382506e197085e32a51cea04 to your computer and use it in GitHub Desktop.
golang ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: golang:1.11 | |
# before_script: | |
# 代码格式化 | |
fmt: | |
script: | |
# 代码格式化 | |
- diff -u <(echo -n) <(gofmt $(find . -type f | grep -v vendor/ |grep -v /clients/ |grep -v /thrift_gen/ |grep -v kite.go|grep .go) ) | |
- diff -u <(echo -n) <(goimports $(find . -type f | grep -v vendor/ |grep -v /clients/ |grep -v /thrift_gen/ |grep -v kite.go|grep .go) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment