summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-08-07 17:19:13 +0200
committerJack Humbert <jack.humb@gmail.com>2017-08-20 20:22:18 +0200
commitfa6bcfd10c4ff70d90c4223c2b5058b06138267a (patch)
tree4ed0a1492d8973a6592d0faa18d097389a4a03e2
parent1254e76e29202ffb11d3c0617362e6c6495b1f27 (diff)
downloadqmk_firmware-fa6bcfd10c4ff70d90c4223c2b5058b06138267a.tar.gz
qmk_firmware-fa6bcfd10c4ff70d90c4223c2b5058b06138267a.tar.xz
make travis convert line-endings and push a skippable commit
-rw-r--r--.travis.yml1
-rw-r--r--util/travis_compiled_push.sh6
2 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 1707c0599..e1cccf1e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,7 @@ addons:
- binutils-arm-none-eabi
- libnewlib-arm-none-eabi
- diffutils
+ - dos2unix
after_success:
bash util/travis_compiled_push.sh
notifications:
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh
index bdda0b344..dc492ba94 100644
--- a/util/travis_compiled_push.sh
+++ b/util/travis_compiled_push.sh
@@ -17,6 +17,12 @@ chmod 600 qmk.fm
eval `ssh-agent -s`
ssh-add id_rsa_qmk_firmware
+# convert to unix line-endings
+git diff --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 dos2unix
+git diff --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add
+git commit -m "convert to unix line-endings [skip ci]"
+git push git@github.com:qmk/qmk_firmware.git
+
increment_version ()
{
declare -a part=( ${1//\./ } )