]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix clang-format logic within CI (#7386)
authorJoel Challis <git@zvecr.com>
Fri, 22 Nov 2019 17:02:55 +0000 (17:02 +0000)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2019 17:02:55 +0000 (17:02 +0000)
util/travis_compiled_push.sh

index e0490cd702a9acc080838e78d592c26440454d6b..c18e42a293273321b2303bd8eb3560f149b058c6 100755 (executable)
@@ -13,7 +13,7 @@ if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; the
 # fix formatting
 git checkout master
 git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix
-git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | grep -e '^drivers' -e '^quantum' -e '^tests' -e '^tmk_core' | grep -v 'quantum/template' | xargs -0 clang-format
+git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} '*.c' '*.h' '*.cpp' | grep -z -e '^drivers' -e '^quantum' -e '^tests' -e '^tmk_core' | grep -zv -e 'quantum/template' -e 'tmk_core/protocol/usb_hid' | xargs -0 clang-format -i
 git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add
 git commit -m "format code according to conventions [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master