33 lines
815 B
Makefile
33 lines
815 B
Makefile
PYTHON := .venv/bin/python
|
|
|
|
.PHONY: install run test check l1 l2 l3 l3-all pipeline
|
|
|
|
install:
|
|
python3 -m venv .venv
|
|
$(PYTHON) -m pip install -r requirements.txt
|
|
|
|
run:
|
|
$(PYTHON) -m web.app
|
|
|
|
test:
|
|
$(PYTHON) -m unittest discover -v
|
|
|
|
check:
|
|
$(PYTHON) -m compileall -q web database tests wsgi.py
|
|
$(PYTHON) -m unittest discover -v
|
|
|
|
l1:
|
|
$(PYTHON) database/L1/L1_Builder.py
|
|
|
|
l2:
|
|
$(PYTHON) database/L2/L2_Builder.py
|
|
|
|
l3:
|
|
$(PYTHON) database/L3/L3_Builder.py
|
|
|
|
l3-all:
|
|
$(PYTHON) database/L3/L3_Builder.py --force
|
|
|
|
pipeline:
|
|
$(PYTHON) -c "from web.app import create_app; create_app(); from database.job_store import JobStore; from database.pipeline import run_pipeline; job_id = JobStore().create_job('manual_pipeline', created_by='cli'); print('job_id=', job_id); raise SystemExit(0 if run_pipeline(job_id) else 1)"
|