Added CI link, cleanup
This commit is contained in:
parent
7e528e4de7
commit
b7115e124d
14
README.md
14
README.md
@ -4,6 +4,8 @@ This repository contains all the handouts I've written for the [ORMC](https://ci
|
||||
|
||||
If you are not affiliated with the ORMC, ask for permission before using these.
|
||||
|
||||
|
||||
|
||||
## Contents
|
||||
|
||||
Handouts are sorted by the class they're for:
|
||||
@ -12,7 +14,17 @@ Handouts are sorted by the class they're for:
|
||||
|
||||
Grade levels are estimates.
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
## Getting the Handouts
|
||||
|
||||
If you don't want to compile these yourself, I've configured CI that puts the latest pdfs [here](https://nc.betalupi.com/s/ormc-handouts).
|
||||
|
||||
**For my students:** Handouts will appear here a few days before class. Please don't look at them (or their solutions) beforehand, that spoils all the fun!
|
||||
|
||||
|
||||
|
||||
## Building them Yourself
|
||||
|
||||
Most handouts use a custom document class. If you move any files out of this repository, you'll need to change a few things for the handout to compile:
|
||||
1. Download [`./resources/ormc_handout.cls`](./resources/ormc_handout.cls).
|
||||
|
@ -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."
|
Loading…
x
Reference in New Issue
Block a user