libcbor icon indicating copy to clipboard operation
libcbor copied to clipboard

Document/improve clang-format check in CI

Open PJK opened this issue 6 years ago • 1 comments

Current failure looks like this, which is not helpful:

+clang-format -version
clang-format version 5.0.0 (tags/RELEASE_500/final)
+clang-format-8 -version
clang-format version 8.0.1-svn360950-1~exp1~20190517011409.67 (branches/release_80)
+./clang-format.sh
/usr/bin/clang-format-8
+git status
+grep 'nothing to commit, working tree clean'
The command "bash -ex .travis-qemu.sh" exited with 1.

PJK avatar Jul 23 '19 07:07 PJK

For the clang-format command, adding the option --verbose will probably be helpful to point out format errors.

Also, you can replace the command

git status | grep "nothing to commit, working tree clean"

with the command

git diff-index --quiet HEAD

This will return 0 if the local files are different from the HEAD.

babelouest avatar Jul 25 '19 13:07 babelouest

Fixed in #230

PJK avatar Dec 27 '22 22:12 PJK