diff options
author | Yan-Fa Li <yanfali@gmail.com> | 2018-12-26 01:40:53 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-12-26 02:09:48 +0100 |
commit | ee1be3e5b5a0259cc7d1c7a126ff7451acf3d6cb (patch) | |
tree | bc3bd9286e527de4be71d330eb1485183fb77db2 /util | |
parent | 8e0444618fdf42301cce4467aea6de63bec3cfed (diff) | |
download | qmk_firmware-ee1be3e5b5a0259cc7d1c7a126ff7451acf3d6cb.tar.gz qmk_firmware-ee1be3e5b5a0259cc7d1c7a126ff7451acf3d6cb.tar.xz |
Improve diagnostics for build hashes
Diffstat (limited to 'util')
-rwxr-xr-x | util/travis_compiled_push.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh index a49908c71..66b3beb6c 100755 --- a/util/travis_compiled_push.sh +++ b/util/travis_compiled_push.sh @@ -8,6 +8,7 @@ TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}" set -o errexit -o nounset rev=$(git rev-parse --short HEAD) +echo "Using git hash ${rev}" if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]] ; then @@ -34,7 +35,7 @@ increment_version () part[2]=$((part[2] + 1)) new="${part[*]}" echo -e "${new// /.}" -} +} git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} @@ -63,7 +64,7 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then ssh-add -D eval `ssh-agent -s` ssh-add id_rsa_qmk.fm - + # don't delete files in case not all keyboards are built # rm -f compiled/*.hex @@ -74,7 +75,7 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then for file in ../qmk_firmware/keyboards/*/*/*/*/keymaps/*/*_default.hex; do mv -v "$file" "compiled/${file##*/}" || true; done bash _util/generate_keyboard_page.sh git add -A - git commit -m "generated from qmk/qmk_firmware@${rev}" + git commit -m "generated from qmk/qmk_firmware@${rev}" git push git@github.com:qmk/qmk.fm.git fi |