-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 784 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 784 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
28
# Fast tier: no Postgres, no third-party test deps, runs in a few seconds.
# This is where the whole failure matrix lives (crashes, zombies, chaos).
test:
python3 -m unittest discover -s tests -t . -v
# Integration tier: proves the DB-level guarantees (SKIP LOCKED exclusivity,
# transition trigger, ON CONFLICT intake, fencing via raw SQL).
DATABASE_URL ?= postgresql://sluice:sluice@localhost:5433/sluice
db-up:
docker compose up -d --wait db
db-down:
docker compose down -v
test-pg: db-up
DATABASE_URL=$(DATABASE_URL) python3 -m unittest discover -s tests/pg -t . -v
test-all: test test-pg
# Watch a few withdrawals live their whole lives, faults included.
demo:
python3 scripts/demo.py
api:
python3 -m sluice.api
.PHONY: test test-pg test-all db-up db-down demo api