-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
55 lines (42 loc) · 1.68 KB
/
Copy pathjustfile
File metadata and controls
55 lines (42 loc) · 1.68 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
# modulex build tasks.
# `just check` is the gate: it is what .githooks/pre-push and CI both run.
# Full validation: format, lint (zero warnings), tests.
check: fmt-check lint test
build:
cargo build
release:
cargo build --release
test:
cargo test --all
lint:
cargo clippy --all-targets --all-features -- -D warnings
fmt:
cargo fmt
fmt-check:
cargo fmt -- --check
# Tier-3 live-contract tests (#36): verify mock fixtures against REAL
# tools on THIS host. Opt-in and host-dependent by design — never part of
# `just check` or PR CI. Tools absent on the host skip with a notice.
live-test:
MODULEX_LIVE_TESTS=1 cargo test -p modulex-core --test live_contract -- --nocapture
# Local coverage with an HTML report (opens target/llvm-cov/html/index.html).
# Excludes binary/pyo3 entrypoints (integration-tested, not unit-tested) so
# the number reflects the library logic the tests actually cover.
cov:
cargo llvm-cov --all-features --workspace \
--ignore-filename-regex '(main\.rs|modulex-py/src/lib\.rs)' --html
@echo "report: target/llvm-cov/html/index.html"
# CI-mode coverage gate: same scope as `cov`, fails under the floor. Mirrors
# the `coverage` job in .github/workflows/ci.yml — keep the floor in sync.
cov-ci:
cargo llvm-cov --all-features --workspace \
--ignore-filename-regex '(main\.rs|modulex-py/src/lib\.rs)' \
--fail-under-lines 80
# Run the CLI against the example config (dry run; no side effects).
demo:
MODULEX_CONFIG=modulex.toml.example cargo run -p modulex-cli -- run morning --dry-run
install-hooks:
git config core.hooksPath .githooks
@echo "push hooks installed (.githooks/pre-push)"
clean:
cargo clean