From 6b33db119a7af43cd711ede21843b4ed0c72f76e Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Wed, 19 Jul 2017 16:55:43 -0700 Subject: coveralls: Adding Travis CI integration --- Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e2f0bd9..24f37ee 100644 --- a/Makefile +++ b/Makefile @@ -110,11 +110,18 @@ update: @govendor remove +unused # Format all the Go and C code -.PHONY: format +.PHONY: format format-check format: @gofmt -l -s -w $(GO_FILES) @clang-format -i -style=Google $(C_FILES) +format-check: + @gofmt -s -d $(GO_FILES) \ + | ./input_fail.py "Incorrectly formatted Go files. Run \"make format\"." + @clang-format -i -style=Google -output-replacements-xml $(C_FILES) \ + | grep "