-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathjustfile
More file actions
86 lines (67 loc) · 2.9 KB
/
justfile
File metadata and controls
86 lines (67 loc) · 2.9 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Frappe Manager - Test Commands
# Usage: just <command>
# Default recipe - show available commands
default:
@just --list
# Run SSL manager tests (clean output)
test:
pytest tests/unit/ssl_manager/ -v
# Run SSL manager tests with application logs
test-logs:
pytest tests/unit/ssl_manager/ -v --show-app-logs
# Run SSL manager tests (quick summary)
test-quick:
pytest tests/unit/ssl_manager/ -q
# Run SSL manager tests with coverage
test-cov:
pytest tests/unit/ssl_manager/ --cov=frappe_manager/ssl_manager --cov-report=html
@echo "\nCoverage report: htmlcov/index.html"
# Run all tests in the repository
test-all:
pytest tests/ -v
# Run specific test file
test-file FILE:
pytest {{FILE}} -v
# Run specific test with logs
test-debug FILE:
pytest {{FILE}} -vv --show-app-logs -s
# Generate command reference docs from the live CLI
docs-gen:
uv run python scripts/update_cli_docs.py
# Serve versioned docs locally via mike (shows version selector)
docs port="8000":
mike serve -F zensical.toml -a 127.0.0.1:{{port}}
# ── Docs styles ───────────────────────────────────────────────────────────────
_scss := "docs/stylesheets/extra.scss"
_css := "docs/stylesheets/extra.css"
# Compile SCSS → CSS (one-shot)
css:
bunx sass {{_scss}} {{_css}} --style=compressed --no-source-map
# Watch SCSS and recompile on change
css-watch:
bunx sass {{_scss}} {{_css}} --style=compressed --no-source-map --watch
# ── Docs versioning ───────────────────────────────────────────────────────────
# Deploy current docs as a named version (e.g. just docs-deploy dev)
docs-deploy alias="dev": css docs-gen
#!/usr/bin/env bash
version=$(python -c "from frappe_manager.__about__ import __version__; print(__version__)")
mike deploy {{alias}} --title "$version" -F zensical.toml
# Deploy and mark as latest (for release tags)
docs-release: css docs-gen
#!/usr/bin/env bash
version=$(python -c "from frappe_manager.__about__ import __version__; print(__version__)")
slug=$(python -c "
import re
from frappe_manager.__about__ import __version__
m = re.match(r'^(\d+\.\d+)', __version__)
print('v' + m.group(1) if m else __version__)
")
mike deploy --update-aliases "$slug" latest --title "$version" -F zensical.toml
# Set the default version redirect (run once after first deploy)
docs-default version="latest":
mike set-default --push {{version}} -F zensical.toml
# Full build: compile CSS + generate docs + deploy as dev
docs-build: css docs-gen
#!/usr/bin/env bash
version=$(python -c "from frappe_manager.__about__ import __version__; print(__version__)")
mike deploy dev --title "$version" -F zensical.toml