This commit is contained in:
Eric Froemling 2023-05-31 10:58:45 -07:00
parent e62d2fcd3f
commit e2ec4c91ba
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98
3 changed files with 17 additions and 15 deletions

View File

@ -54,8 +54,6 @@ jobs:
run: tools/pcommand install_pip_reqs
- name: Build prereqs
run: make prereqs
- name: Hmmm
run: clang-format --version
- name: Build spinoff project with no featuresets
run: tools/pcommand spinoff_test empty

View File

@ -325,21 +325,22 @@ def spinoff_test() -> None:
flush=True,
)
subprocess.run(['rm', '-rf', path], check=True)
cmd = [
'./tools/spinoff',
'create',
'SpinoffTest',
path,
'--featuresets',
'none',
]
print(Clr.MAG + ' '.join(cmd) + Clr.RST)
subprocess.run(
[
'./tools/spinoff',
'create',
'SpinoffTest',
path,
'--featuresets',
'none',
'--noninteractive',
],
cmd + ['--noninteractive'],
check=True,
)
os.makedirs(path, exist_ok=True)
print(f'{Clr.BLU}Running spinoff update...{Clr.RST}', flush=True)
subprocess.run(['./tools/spinoff', 'update'], cwd=path, check=True)
print(f'{Clr.MAG}tools/spinoff update{Clr.RST}', flush=True)
subprocess.run(['tools/spinoff', 'update'], cwd=path, check=True)
subprocess.run(['make', 'cmake-server-binary'], cwd=path, check=True)
else:
raise CleanError(f"Invalid test type '{testtype}'.")

View File

@ -210,10 +210,13 @@ def _do_create(src_root: str | None, dst_root: str) -> None:
# on git so its best to always do this.
subprocess.run(['git', 'init'], cwd=path, check=True, capture_output=True)
print(
f'{Clr.GRN}{Clr.BLD}Spinoff dst project created at'
f' {Clr.RST}{Clr.BLD}{path}{Clr.RST}{Clr.GRN}.{Clr.RST}'
)
if not noninteractive:
print(
f'{Clr.GRN}{Clr.BLD}Spinoff dst project created at'
f' {Clr.RST}{Clr.BLD}{path}{Clr.RST}{Clr.GRN}.{Clr.RST}\n\n'
'\n'
'Next, from dst project root, do:\n'
f' {Clr.BLD}{Clr.MAG}./tools/spinoff update{Clr.RST} '
'- Syncs src project into dst.\n'