ci: tests: do not build all tests when docs/images change

When we change documentation or board images, do not build all tests for
this board. Only add more tests when actual code has changed.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-02-09 15:01:19 -05:00 committed by Kumar Gala
parent 115b811016
commit 062d05645b

View File

@ -57,6 +57,8 @@ def main():
files = commit.split("\n")
tests = set()
for f in files:
if f.endswith(".rst"):
continue
d = os.path.dirname(f)
while d:
if os.path.exists(os.path.join(d, "testcase.yaml")) or os.path.exists(os.path.join(d, "sample.yaml")):