diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-05-06 13:38:02 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-06 14:17:35 +0200 |
| commit | 5395017f679d83e45e9610f27f36a8a3fdc08923 (patch) | |
| tree | 848aa5efa5893c2eb6e5bf03d62fa2f0dee7bfa3 | |
| parent | 35b8eb3041516c17ae2eb3b09a33b7429ade33d3 (diff) | |
Makefile: print what files are not formatted
Move this part from .travis.yml to Makefile.
It's useful to see it always and we generally
don't have lots of logic in the travis file.
Also move list of changed files to the bottom
(that's what one generally sees at console
and at the end of the log).
| -rw-r--r-- | .travis.yml | 5 | ||||
| -rw-r--r-- | Makefile | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index b53944ffc..b959f8d07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,11 +29,6 @@ script: after_success: - curl -s https://codecov.io/bash | bash -s - -y tools/codecov.yml -# If the build fails because some code in not formatted, it's nice to see the diffs after formatting. -after_failure: - - git diff --name-only - - git diff - jobs: include: - stage: fuzzit.dev (regression) @@ -382,4 +382,8 @@ check_links: # Check that the diff is empty. This is meant to be executed after generating # and formatting the code to make sure that everything is committed. check_diff: - DIFF="$(shell git diff --name-only)"; test -z "$$DIFF" + @if [ "$(shell git diff --name-only)" != "" ]; then \ + git diff; \ + echo -e "\n\nSome files are not formatted/regenerated (include them into commit):"; \ + git diff --name-only; \ + fi |
