mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 21:37:57 +08:00
tidying
This commit is contained in:
parent
e62d2fcd3f
commit
e2ec4c91ba
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
||||
@ -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}'.")
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user