def run_example_build()

in scripts/test-examples.py [0:0]


def run_example_build(settings_file, project_dir):
    command = [gradlew, "-p", project_dir, "-c", settings_file, "clean", "check"]
    str_cmd = " ".join(command)
    try:
        Out.info(f"Running {str_cmd}")
        p = subprocess.check_output(command)
        Out.info(p.decode("utf-8"))
    except subprocess.SubprocessError as error:
        Out.error(f"Unable to test {project_dir}, command '{str_cmd}' failed!", error)
        sys.exit(2)