Lines Matching +full:build +full:- +full:args
8 # http://www.apache.org/licenses/LICENSE-2.0
15 """Runs selected gRPC test/build tasks."""
42 label_build_map["all"] = [t for t in _TARGETS] # to build all targets
57 argp = argparse.ArgumentParser(description="Runs build/test targets.")
59 "-b",
60 "--build",
64 help="Target name or target label to build.",
67 "-f",
68 "--filter",
72 help="Filter targets to build with AND semantics.",
74 argp.add_argument("-j", "--jobs", default=multiprocessing.cpu_count(), type=int)
76 "-x",
77 "--xml_report",
80 help="Filename for the JUnit-compatible XML report",
83 "--dry_run",
90 "--inner_jobs",
99 args = argp.parse_args() variable
101 # Figure out which targets to build
103 for label in args.build:
106 # Among targets selected by -b, filter out those that don't match the filter
107 targets = [t for t in targets if all(f in t.labels for f in args.filter)]
109 print("Will build %d targets:" % len(targets))
114 if args.dry_run:
115 print("--dry_run was used, exiting")
118 # Execute pre-build phase
124 prebuild_jobs, newline_on_success=True, maxjobs=args.jobs
127 jobset.message("FAILED", "Pre-build phase failed.", do_newline=True)
132 build_jobs.append(target.build_jobspec(inner_jobs=args.inner_jobs))
134 print("Nothing to build.")
139 build_jobs, newline_on_success=True, maxjobs=args.jobs
142 resultset, args.xml_report, suite_name="tasks"
149 jobset.message("FAILED", "Failed to build targets.", do_newline=True)