From 6b820d91aec2da3d408f18b9f6431072cc3e5f41 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 4 Aug 2015 16:12:48 -0600 Subject: [PATCH] Verify proper go formatting in circleci job --- circle.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/circle.yml b/circle.yml index 6c346a360..ccbfae779 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,8 @@ test: pre: # Vet go code for any potential errors - go vet ./... + # Verify that all files are properly go formatted + - "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]" override: # Enforce that testutil, cmd, and main directory are fully linted - golint .