瀏覽代碼

Support a --build-only for ci.py that skips tests

default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
b6628fa7fc
共有 1 個文件被更改,包括 16 次插入1 次删除
  1. +16
    -1
      tools/ci.py

+ 16
- 1
tools/ci.py 查看文件

@@ -72,10 +72,18 @@ def main(argv: Sequence[str]) -> int:
'--toolchain-json5',
'-T2',
help='The toolchain JSON to use with the bootstrapped executable',
required=True,
)
parser.add_argument(
'--build-only',
action='store_true',
help='Only build the `dds` executable. Skip second-phase and tests.')
args = parser.parse_args(argv)

if not args.build_only and not args.toolchain_json5:
raise RuntimeError(
'The --toolchain-json5/-T2 argument is required (unless using --build-only)'
)

opts = CIOptions(
toolchain=args.toolchain, toolchain_json5=args.toolchain_json5)

@@ -111,6 +119,13 @@ def main(argv: Sequence[str]) -> int:
('--repo-dir', ci_repo_dir),
])
print('Main build PASSED!')
print(f'A `dds` executable has been generated: {paths.CUR_BUILT_DDS}')

if args.build_only:
print(
f'`--build-only` was given, so second phase and tests will not execute'
)
return 0

# Delete the catalog database, since there may be schema changes since the
# bootstrap executable was built

Loading…
取消
儲存