Exclude ci checks and tests from building boards
This commit is contained in:
parent
9f0c0720f9
commit
d14868d540
@ -34,6 +34,11 @@ PORT_TO_ARCH = {
|
|||||||
"stm": "arm",
|
"stm": "arm",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IGNORE = [
|
||||||
|
"tools/ci_set_matrix.py",
|
||||||
|
"tools/ci_check_duplicate_usb_vid_pid.py",
|
||||||
|
]
|
||||||
|
|
||||||
changed_files = {}
|
changed_files = {}
|
||||||
try:
|
try:
|
||||||
changed_files = json.loads(os.environ["CHANGED_FILES"])
|
changed_files = json.loads(os.environ["CHANGED_FILES"])
|
||||||
@ -80,6 +85,14 @@ def set_boards_to_build(build_all):
|
|||||||
if port != "unix":
|
if port != "unix":
|
||||||
boards_to_build.update(port_to_boards[port])
|
boards_to_build.update(port_to_boards[port])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Check the ignore list to see if the file isn't used on board builds.
|
||||||
|
if p in IGNORE:
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Boards don't run tests so ignore those as well.
|
||||||
|
if p.startswith("tests"):
|
||||||
|
continue
|
||||||
|
|
||||||
# Otherwise build it all
|
# Otherwise build it all
|
||||||
boards_to_build = all_board_ids
|
boards_to_build = all_board_ids
|
||||||
|
Loading…
Reference in New Issue
Block a user