Added CI link, cleanup

This commit is contained in:
2023-02-25 23:32:02 -08:00
parent 7e528e4de7
commit b7115e124d
2 changed files with 23 additions and 5 deletions

View File

@ -19,6 +19,7 @@ print(Path.cwd())
# If true, rebuild everything
# without checking for changes.
# Currently unused.
if "FORCE_ALL" in e:
force_all = e["FORCE_ALL"] == "true"
else:
@ -36,13 +37,13 @@ class FakeClient:
pass
def mkdir(self, path):
print(f"Making dir {path}")
print(f"[Dry run] Making dir {path}")
def upload_sync(self, local_path, remote_path):
print(f"Sync {local_path} to {remote_path}")
print(f"[Dry run] Synced {local_path} to {remote_path}")
def clean(self, path):
print(f"Cleaning {path}")
print(f"[Dry run] Cleaning {path}")
@ -136,6 +137,9 @@ for i, item in enumerate(config["dir-of-dirs"]):
target_dir / (s.stem + ".sols.pdf")
)
# TODO: this breaks when the output directory is empty.
# Fix it eventually.
if not test:
# Delete old files
for i in client.list():
@ -146,4 +150,6 @@ if not test:
upload_dir(output)
# Remove output files so they don't persist
shutil.rmtree(output)
# shutil.rmtree(output)
# Shouldn't be necessary if you tell
# jenkins to "clean before checkout."