diff options
author | QMK Bot <hello@qmk.fm> | 2020-12-06 12:54:36 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-12-06 12:54:36 +0000 |
commit | e31671ece0d4197dccb66512bca172fb2ff4aea7 (patch) | |
tree | 7c489e10221079a5488a67a120499fefe493b0a4 /util | |
parent | 3aa2c122e14aea81725ffbc0f1ca0426565a6e39 (diff) | |
parent | 8d6ad23b096ed2fc4d8fd0e6781fca30b87b343f (diff) | |
download | qmk_firmware-e31671ece0d4197dccb66512bca172fb2ff4aea7.tar.gz qmk_firmware-e31671ece0d4197dccb66512bca172fb2ff4aea7.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'util')
-rwxr-xr-x | util/travis_compiled_push.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh index 195a87208b..a9c6f028fb 100755 --- a/util/travis_compiled_push.sh +++ b/util/travis_compiled_push.sh @@ -17,30 +17,8 @@ git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} '*.c' '*.h' git diff --diff-filter=AM --name-only -n 1 -z ${TRAVIS_COMMIT_RANGE} | xargs -0 git add git commit -m "format code according to conventions [skip ci]" && git push git@github.com:qmk/qmk_firmware.git master -increment_version () -{ - declare -a part=( ${1//\./ } ) - part[2]=$((part[2] + 1)) - new="${part[*]}" - echo -e "${new// /.}" -} - git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} -NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | grep -Ev '^(docs/)' | grep -Ev '^(users/)' | grep -Ev '^(layouts/)' | wc -l) -if [[ $NEFM -gt 0 ]] ; then - echo "Essential files modified." - git fetch --tags - lasttag=$(git tag --sort=-creatordate --no-column --list '*.*.*' | grep -E -m1 '^[0-9]+\.[0-9]+\.[0-9]+$') - newtag=$(increment_version $lasttag) - until git tag $newtag; do - newtag=$(increment_version $newtag) - done - git push --tags git@github.com:qmk/qmk_firmware.git -else - echo "No essential files modified." -fi - if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then make generate-keyboards-file SILENT=true > .keyboards cd .. |