TESTS = 

all: check build test doc shear

check:
	cargo clippy --workspace --all-targets -- -Dwarnings
	RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace
	cargo deny check -Dwarnings

build:
	cargo build --all-targets --workspace
	subplot docgen ci-broker.subplot -o ci-broker.html

fast-test: build
	timeout 60 cargo test --workspace -- --skip upgrades $(TESTS)

test: fast-test
	timeout 300 cargo test --workspace -- $(TESTS)

.PHONY: doc
doc:
	make -C doc

semver:
	cargo semver-checks

shear:
	cargo shear
