diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-26 02:17:46 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-26 02:17:46 +0200 |
commit | 2d9f7009fa64507c3f0dfe9817deed29cdbf4a9b (patch) | |
tree | dde192f06c8f15540f5d007bf0db5d0f4af1ed4b /.circleci/config.yml | |
parent | 4b19b4108ed2facb91efdf936c8c4bc5fe1f9ff1 (diff) |
add gofmt to circle
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index e57569829..eca323aed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,13 @@ jobs: keys: - v1-pkg-cache - run: + name: Run gofmt -s + command: | + if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then + find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \; + exit 1; + fi + - run: name: Run tests command: | ./test.sh |