-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 948 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (22 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Repo-level lint + smoke-test targets. Run from the repo root.
.PHONY: lint lint-citation lint-paper smoke help
help:
@echo "make lint run lint-citation (lint-paper is opt-in to keep lint fast)"
@echo "make lint-citation fail if CITATION.cff still has literal TODO placeholders"
@echo "make lint-paper build the paper once (cd paper && make)"
@echo "make smoke run analysis scripts as a release smoke test"
# Fails CI if CITATION.cff has TODO inside a quoted VALUE
lint-citation:
@if grep -nE '"[^"]*TODO[^"]*"' CITATION.cff; then \
echo "FAIL: CITATION.cff has a TODO inside a quoted value." 1>&2; \
exit 1; \
else \
echo "OK: CITATION.cff has no TODO values (inline # TODO comments are allowed)."; \
fi
lint-paper:
$(MAKE) -C paper all
smoke:
python3 analysis/paper_breakdown.py > /dev/null
python3 analysis/stats.py > /dev/null
@echo "OK: analysis scripts ran cleanly."
lint: lint-citation