aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-12-10 17:01:51 +0000
committerGitHub <noreply@github.com>2020-12-10 17:01:51 +0000
commit6c4b6531fe8fed46bec54fae993a1bab8246dd7d (patch)
treedbe9ad71cbccafee465545cdf7180e65694e4630 /util
parent82bb47a2f12429dda49886571173024cc8b80357 (diff)
downloadqmk_firmware-6c4b6531fe8fed46bec54fae993a1bab8246dd7d.tar.gz
qmk_firmware-6c4b6531fe8fed46bec54fae993a1bab8246dd7d.zip
CI: Add workflow for codebase formatting (#7382)
* Add workflow for codebase formatting * stash * review comments * Swap to a more complete push action
Diffstat (limited to 'util')
-rwxr-xr-xutil/travis_compiled_push.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh
index a9c6f028f..6300442fd 100755
--- a/util/travis_compiled_push.sh
+++ b/util/travis_compiled_push.sh
@@ -10,12 +10,7 @@ echo "Using git hash ${rev}"
10 10
11if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; then 11if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; then
12 12
13# fix formatting
14git checkout master 13git checkout master
15git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix
16git 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' -e 'platforms/chibios' | xargs -0 clang-format-7 -i
17git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add
18git commit -m "format code according to conventions [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master
19 14
20git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} 15git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE}
21 16