Skip to content

Commit

Permalink
Adding CI integration with Cloudbuild. Adding format script and test …
Browse files Browse the repository at this point in the history
…target in Makefile
  • Loading branch information
Adrien Walkowiak committed Sep 12, 2019
1 parent d7ad163 commit 4bf9708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ help: ## Prints help for targets with comments

.PHONY: test
test: ## Test if all files are properly formatted
@yapf --diff -r --style google tools/**/*.py > /dev/null || yapf --diff -r --style google tools/**/*.py | grep original | awk '{print $2}'
@if ! yapf --diff -r --style google tools/**/*.py > /dev/null; then echo "Some files need to be formatted by yapf:"; yapf --diff -r --style google tools/**/*.py | grep original | awk '{print $2}'; exit 1; fi

0 comments on commit 4bf9708

Please sign in to comment.