diff options
| author | Zach White <skullydazed@gmail.com> | 2020-11-30 11:19:44 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-30 11:19:44 -0800 |
| commit | 8724a70c4c4329f09b9cf6dbda4dbefaaf3a3ee9 (patch) | |
| tree | 19959fcac0e855b7187ecff8e94824d8f05a4ed4 /util/travis_utils.sh | |
| parent | 485e4524f47f15d9581c1cd2619bbcd321380f68 (diff) | |
| download | qmk_firmware-8724a70c4c4329f09b9cf6dbda4dbefaaf3a3ee9.tar.gz qmk_firmware-8724a70c4c4329f09b9cf6dbda4dbefaaf3a3ee9.zip | |
Reduce travis load by replacing an exclusive grep with an inclusive grep (#10964)
* add -n to avoid compiling
* switch to an include rather than exclude strategy
Diffstat (limited to 'util/travis_utils.sh')
| -rwxr-xr-x | util/travis_utils.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/travis_utils.sh b/util/travis_utils.sh index e3d806dfb..e949946e2 100755 --- a/util/travis_utils.sh +++ b/util/travis_utils.sh | |||
| @@ -12,6 +12,7 @@ TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}" | |||
| 12 | # Extra variables | 12 | # Extra variables |
| 13 | LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD) | 13 | LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD) |
| 14 | QMK_CHANGES=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE}) | 14 | QMK_CHANGES=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE}) |
| 15 | NUM_CORE_CHANGES=$(echo "$QMK_CHANGES" | grep -Ec -e '^Makefile' -e '^[^/]*.mk' -e '^drivers/' -e '^lib/atsam' -e '^lib/lib8tion/' -e '^platforms' -e '^quantum' -e '^tests' -e '^tmk_core') | ||
| 15 | 16 | ||
| 16 | # if docker is installed - patch calls to within the qmk docker image | 17 | # if docker is installed - patch calls to within the qmk docker image |
| 17 | if command -v docker >/dev/null; then | 18 | if command -v docker >/dev/null; then |
