SHELL := /usr/bin/env bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := help
include release.mk
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-16s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: check
check: fmt-check lint test
.PHONY: build
build:
cargo build
.PHONY: test
test:
cargo test --all-features --all-targets --locked
cargo test --all-features --doc --locked
.PHONY: lint
lint:
cargo clippy --all-targets --all-features --locked -- -D warnings
.PHONY: eval-tests
eval-tests:
cargo test --all-features --test user_guide_cases
.PHONY: docs
docs:
BRAKE_BLESS=1 cargo test --all-features --test docs_match_the_catalogue
BRAKE_BLESS=1 cargo test --all-features --test surface_parity the_committed_capabilities_document
.PHONY: agents
agents:
BRAKE_BLESS=1 cargo test --all-features --test agent_guidance_is_consistent
.PHONY: self-check
self-check:
cargo run --quiet -- check --format text api/payments-openapi.yaml
.PHONY: fmt
fmt:
cargo fmt --all
.PHONY: fmt-check
fmt-check:
cargo fmt --all --check
.PHONY: hooks
hooks:
prek install
.PHONY: watch-ci
watch-ci:
@command -v watch-ci >/dev/null || { echo "watch-ci not on PATH: ln -s ~/dev/projects/agentic-twin/scripts/watch-ci.sh ~/.local/bin/watch-ci" >&2; exit 1; }
watch-ci