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 --- .travis.yml | 5 ++--- Makefile | 23 ++++++++++++++--------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2a186aa..f530e1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,7 @@ addons: - git # Needed to stop git from getting deleted install: - - make go-tools - - make test-setup + - make travis-install script: - - make check + - make travis-script 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 "