ci: test build doc clippy fmt context-integration-tests run-examples forbidden-words render-readme-check
build:
cargo build --all-targets --all-features
test pattern="": build
cargo test --all -- --test-threads=1 {{ pattern }}
rm -f 'filename with spaces' foo
test-lib-fast pattern="":
cargo test --lib -- --test-threads=1 {{ pattern }}
context-integration-tests: build
cargo run --features "test_executables" --bin context_integration_tests
doc:
cargo doc --all
clippy:
cargo clippy --all-targets --all-features
fmt:
cargo fmt --all -- --check
run-examples:
cargo run --example readme
render-readme:
php README.php > README.md
render-readme-check:
#!/usr/bin/env bash
diff <(php README.php) README.md
forbidden-words:
! grep -rni \
'dbg!\|fixme\|todo\|ignore' \
src tests examples
@echo No forbidden words found