Pārlūkot izejas kodu

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

default_compile_flags
vector-of-bool pirms 4 gadiem
vecāks
revīzija
b6628fa7fc
1 mainītis faili ar 16 papildinājumiem un 1 dzēšanām
  1. +16
    -1
      tools/ci.py

+ 16
- 1
tools/ci.py Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt