aboutsummaryrefslogtreecommitdiff
path: root/util/travis_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/travis_build.sh')
-rw-r--r--util/travis_build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/travis_build.sh b/util/travis_build.sh
index fab9178de..794b0d3a1 100644
--- a/util/travis_build.sh
+++ b/util/travis_build.sh
@@ -4,15 +4,19 @@ TRAVIS_COMMIT_MESSAGE="${TRAVIS_COMMIT_MESSAGE:-none}"
4TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}" 4TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}"
5 5
6if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then 6if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then
7 exit_code=0
7 NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | wc -l) 8 NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | wc -l)
8 if [[ $NEFM -gt 0 ]] ; then 9 if [[ $NEFM -gt 0 ]] ; then
9 echo "Making all keymaps for all keyboards" 10 echo "Making all keymaps for all keyboards"
10 make all-keyboards AUTOGEN="true" 11 make all-keyboards AUTOGEN="true"
12 : $((exit_code = $exit_code + $?))
11 else 13 else
12 MKB=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -oP '(?<=keyboards\/)([a-zA-Z_]+)' | sort -u) 14 MKB=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -oP '(?<=keyboards\/)([a-zA-Z_]+)' | sort -u)
13 for KB in $MKB ; do 15 for KB in $MKB ; do
14 echo "Making all keymaps for $KB" 16 echo "Making all keymaps for $KB"
15 make "$KB" AUTOGEN=true 17 make "$KB" AUTOGEN=true
18 : $((exit_code = $exit_code + $?))
16 done 19 done
17 fi 20 fi
21 exit $exit_code
18fi 22fi