2024-04-06 17:47:30 +01:00
|
|
|
install-hooks:
|
|
|
|
@echo "Installing git hooks"
|
2024-05-11 11:11:13 +01:00
|
|
|
cargo install cc-cli
|
2024-04-06 17:47:30 +01:00
|
|
|
git config core.hooksPath .git-hooks
|
2024-04-13 12:02:53 +01:00
|
|
|
|
|
|
|
validate-dev-branch:
|
|
|
|
git rebase -i origin/main -x 'cargo build'
|
|
|
|
git rebase -i origin/main -x 'cargo test'
|
2024-05-02 15:00:59 +01:00
|
|
|
git rebase -i origin/main -x 'cargo clippy -- -D warnings'
|
2024-04-15 17:23:05 +01:00
|
|
|
|
|
|
|
start-ngrok:
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Uses NGROK_DOMAIN env var if available
|
|
|
|
if test -z ${NGROK_DOMAIN} ; then
|
|
|
|
ngrok http 8080
|
|
|
|
else
|
|
|
|
ngrok http --domain=${NGROK_DOMAIN} 8080
|
|
|
|
fi
|
2024-05-17 18:49:00 +01:00
|
|
|
|
|
|
|
coverage:
|
|
|
|
cargo tarpaulin --lib --out html
|
|
|
|
open tarpaulin-report.html
|