Explorar el Código

make travis convert line-endings and push a skippable commit

Jack Humbert hace 7 años
padre
commit
fa6bcfd10c
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 1 0
      .travis.yml
  2. 6 0
      util/travis_compiled_push.sh

+ 1 - 0
.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:

+ 6 - 0
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//\./ } )