Skip to content
Browse files

ci: detect changes to sub-board definitions

When detecting changes to boards, make sure we test all board
configurations available in that board directory, not only the main one.

Signed-off-by: Anas Nashif <>
  • Loading branch information...
nashif committed Apr 19, 2019
1 parent 9332abd commit 924987d72fa9daee3575d7e629266bf30884521f
Showing with 11 additions and 2 deletions.
  1. +11 −2 scripts/ci/
@@ -8,6 +8,7 @@
import sh
import logging
import argparse
import glob

if "ZEPHYR_BASE" not in os.environ:
logging.error("$ZEPHYR_BASE environment variable undefined.\n")
@@ -50,6 +51,7 @@ def parse_args():

def main():
boards = set()
all_boards = set()

args = parse_args()
if not args.commits:
@@ -65,8 +67,15 @@ def main():
if p and p.groups():

if boards:
print("-p\n%s" %("\n-p\n".join(boards)))
for b in boards:
suboards = glob.glob("boards/*/%s/*.yaml" %(b))
for subboard in suboards:
name = os.path.splitext(os.path.basename(subboard))[0]
if name:

if all_boards:
print("-p\n%s" %("\n-p\n".join(all_boards)))

0 comments on commit 924987d

Please sign in to comment.
You can’t perform that action at this time.