Skip to content

Commit

Permalink
make travis convert line-endings and push a skippable commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Aug 20, 2017
1 parent 1254e76 commit fa6bcfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ addons:
- binutils-arm-none-eabi
- libnewlib-arm-none-eabi
- diffutils
- dos2unix
after_success:
bash util/travis_compiled_push.sh
notifications:
Expand Down
6 changes: 6 additions & 0 deletions util/travis_compiled_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]:qmk/qmk_firmware.git

increment_version ()
{
declare -a part=( ${1//\./ } )
Expand Down

0 comments on commit fa6bcfd

Please sign in to comment.