diff options
| author | fauxpark <fauxpark@gmail.com> | 2019-10-10 21:48:37 +1100 |
|---|---|---|
| committer | Joel Challis <git@zvecr.com> | 2019-10-10 11:48:37 +0100 |
| commit | ed1bf3afa25d7e7674df7e8618dfaf243de3058b (patch) | |
| tree | cfe0e4331b8f00d09706dd0aaa8fef2cac3f61d7 /util/travis_compiled_push.sh | |
| parent | 528ddb79871b76d026c4b2ca8b1debf9feb1e751 (diff) | |
| download | qmk_firmware-ed1bf3afa25d7e7674df7e8618dfaf243de3058b.tar.gz qmk_firmware-ed1bf3afa25d7e7674df7e8618dfaf243de3058b.zip | |
Prevent clang-format messing up placeholder tokens within keyboard templates (#6790)
* Use .template file extension for keyboard template files
* Filter out .template files completely before passing to clang-format
* Undo file extension stuff; just ignore quantum/template dir
Diffstat (limited to 'util/travis_compiled_push.sh')
| -rwxr-xr-x | util/travis_compiled_push.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh index 4737d693b..8ca65f21a 100755 --- a/util/travis_compiled_push.sh +++ b/util/travis_compiled_push.sh | |||
| @@ -12,7 +12,7 @@ if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; the | |||
| 12 | # fix formatting | 12 | # fix formatting |
| 13 | git checkout master | 13 | git checkout master |
| 14 | git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix | 14 | git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix |
| 15 | git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | grep -e '^drivers' -e '^quantum' -e '^tests' -e '^tmk_core' | xargs -0 clang-format | 15 | 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 |
| 16 | git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add | 16 | git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add |
| 17 | git commit -m "format code according to conventions [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master | 17 | git commit -m "format code according to conventions [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master |
| 18 | 18 | ||
