mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-01 04:03:17 +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
|
run: tools/pcommand install_pip_reqs
|
||||||
- name: Build prereqs
|
- name: Build prereqs
|
||||||
run: make prereqs
|
run: make prereqs
|
||||||
- name: Hmmm
|
|
||||||
run: clang-format --version
|
|
||||||
- name: Build spinoff project with no featuresets
|
- name: Build spinoff project with no featuresets
|
||||||
run: tools/pcommand spinoff_test empty
|
run: tools/pcommand spinoff_test empty
|
||||||
|
|
||||||
|
|||||||
@ -325,21 +325,22 @@ def spinoff_test() -> None:
|
|||||||
flush=True,
|
flush=True,
|
||||||
)
|
)
|
||||||
subprocess.run(['rm', '-rf', path], check=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(
|
subprocess.run(
|
||||||
[
|
cmd + ['--noninteractive'],
|
||||||
'./tools/spinoff',
|
|
||||||
'create',
|
|
||||||
'SpinoffTest',
|
|
||||||
path,
|
|
||||||
'--featuresets',
|
|
||||||
'none',
|
|
||||||
'--noninteractive',
|
|
||||||
],
|
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
os.makedirs(path, exist_ok=True)
|
os.makedirs(path, exist_ok=True)
|
||||||
print(f'{Clr.BLU}Running spinoff update...{Clr.RST}', flush=True)
|
print(f'{Clr.MAG}tools/spinoff update{Clr.RST}', flush=True)
|
||||||
subprocess.run(['./tools/spinoff', 'update'], cwd=path, check=True)
|
subprocess.run(['tools/spinoff', 'update'], cwd=path, check=True)
|
||||||
subprocess.run(['make', 'cmake-server-binary'], cwd=path, check=True)
|
subprocess.run(['make', 'cmake-server-binary'], cwd=path, check=True)
|
||||||
else:
|
else:
|
||||||
raise CleanError(f"Invalid test type '{testtype}'.")
|
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.
|
# on git so its best to always do this.
|
||||||
subprocess.run(['git', 'init'], cwd=path, check=True, capture_output=True)
|
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:
|
if not noninteractive:
|
||||||
print(
|
print(
|
||||||
f'{Clr.GRN}{Clr.BLD}Spinoff dst project created at'
|
'\n'
|
||||||
f' {Clr.RST}{Clr.BLD}{path}{Clr.RST}{Clr.GRN}.{Clr.RST}\n\n'
|
|
||||||
'Next, from dst project root, do:\n'
|
'Next, from dst project root, do:\n'
|
||||||
f' {Clr.BLD}{Clr.MAG}./tools/spinoff update{Clr.RST} '
|
f' {Clr.BLD}{Clr.MAG}./tools/spinoff update{Clr.RST} '
|
||||||
'- Syncs src project into dst.\n'
|
'- Syncs src project into dst.\n'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user