diff options
| author | skullydazed <skullydazed@users.noreply.github.com> | 2019-07-09 15:47:18 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | 9e20478e6bdebc9cea49204482992471bccaf6a1 (patch) | |
| tree | d732aaed923b65cf832345e7bfdc2dfe0f8cea20 /util/travis_compiled_push.sh | |
| parent | 51ee2449060517a96cedb7c38b86a7de0be2ecab (diff) | |
| download | qmk_firmware-9e20478e6bdebc9cea49204482992471bccaf6a1.tar.gz qmk_firmware-9e20478e6bdebc9cea49204482992471bccaf6a1.zip | |
Enforce clang-format (#6293)
* Enforce clang-format on commit for core files
* forgot about tests
Diffstat (limited to 'util/travis_compiled_push.sh')
| -rwxr-xr-x | util/travis_compiled_push.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh index 04021ae7c..f20e30cdb 100755 --- a/util/travis_compiled_push.sh +++ b/util/travis_compiled_push.sh | |||
| @@ -9,9 +9,10 @@ echo "Using git hash ${rev}" | |||
| 9 | 9 | ||
| 10 | if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; then | 10 | if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; then |
| 11 | 11 | ||
| 12 | # convert to unix line-endings | 12 | # fix formatting |
| 13 | git checkout master | 13 | git checkout master |
| 14 | git diff --diff-filter=M --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix | 14 | git diff --diff-filter=M --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix |
| 15 | git diff --diff-filter=M --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=M --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add | 16 | git diff --diff-filter=M --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add |
| 16 | git commit -m "convert to unix line-endings [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master | 17 | git commit -m "convert to unix line-endings [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master |
| 17 | 18 | ||
