diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-02-07 01:35:10 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-02-07 01:35:10 -0500 |
commit | 19d63ad72c012ee3dfb9375724067b278593df8a (patch) | |
tree | 81a26ac9efac69d1af3384ed9a3ea1901797aa23 /util | |
parent | e5a23068040a4da1189065408b87315c6de5e299 (diff) | |
download | qmk_firmware-19d63ad72c012ee3dfb9375724067b278593df8a.tar.gz qmk_firmware-19d63ad72c012ee3dfb9375724067b278593df8a.zip |
try building only keyboards needed
Diffstat (limited to 'util')
-rw-r--r-- | util/travis_build.sh | 18 | ||||
-rw-r--r-- | util/travis_compiled_push.sh | 6 |
2 files changed, 21 insertions, 3 deletions
diff --git a/util/travis_build.sh b/util/travis_build.sh new file mode 100644 index 0000000000..df2e06960b --- /dev/null +++ b/util/travis_build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +TRAVIS_COMMIT_MESSAGE="${TRAVIS_COMMIT_MESSAGE:-none}" +TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}" + +if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then + NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | wc -l) + if [[ $NEFM -gt 0 ]] ; then + echo "Making all keymaps for all keyboards" + make all-keyboards AUTOGEN=true + else + MKB=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -oP '(?<=keyboards\/)([a-zA-Z_]+)' | sort -u) + for KB in $MKB ; do + echo "Making all keymaps for $KB" + make "$KB" AUTOGEN=true + done + fi +fi diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh index 3751da1e53..6ec558cac6 100644 --- a/util/travis_compiled_push.sh +++ b/util/travis_compiled_push.sh @@ -38,9 +38,9 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then git clone https://$GH_TOKEN@github.com/jackhumbert/qmk.fm.git cd qmk.fm git submodule update --init --recursive - rm -rf keyboard - rm -rf keyboards - cp -r ../qmk_firmware/keyboards . + #rm -rf keyboard + #rm -rf keyboards + yes | cp -rf ../qmk_firmware/keyboards . mkdir keyboards/ergodox_ez/ cp ../qmk_firmware/util/ergodox_ez.html keyboards/ergodox_ez/index.html cp ../qmk_firmware/readme.md qmk_readme.md |