2023-10-20 08:11:23 +11:00
|
|
|
all_tests: no_token_test token_tests audit
|
2023-08-29 12:18:07 +10:00
|
|
|
|
|
|
|
no_token_test:
|
|
|
|
cargo clippy --all-targets -- -D warnings
|
|
|
|
cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
cargo test
|
|
|
|
|
2023-10-10 12:44:40 +11:00
|
|
|
# Require an access token from "cli.json". Use `just auth` to generate.
|
2023-08-29 12:18:07 +10:00
|
|
|
token_tests:
|
|
|
|
cargo run -- api vehicles
|
2023-08-29 13:55:02 +10:00
|
|
|
cargo run --no-default-features --features cli -- api vehicles
|
2023-09-05 13:48:16 +10:00
|
|
|
cargo run -- api products
|
2023-08-30 15:54:22 +10:00
|
|
|
|
|
|
|
publish version:
|
2023-08-30 15:57:25 +10:00
|
|
|
git diff-index --quiet HEAD
|
2023-08-30 15:54:22 +10:00
|
|
|
|
2023-08-30 15:57:25 +10:00
|
|
|
# BSD sed
|
|
|
|
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
|
2023-08-30 15:54:22 +10:00
|
|
|
|
2023-08-30 15:57:25 +10:00
|
|
|
git add Cargo.toml
|
|
|
|
git commit -m "chore: v{{version}}"
|
|
|
|
git tag "v{{version}}"
|
|
|
|
git push origin "v{{version}}"
|
2023-08-30 15:57:57 +10:00
|
|
|
git push
|
2023-08-30 15:57:25 +10:00
|
|
|
|
|
|
|
cargo publish
|
2023-10-10 12:44:40 +11:00
|
|
|
|
|
|
|
auth:
|
|
|
|
cargo run -- auth --save
|
2023-10-20 08:11:23 +11:00
|
|
|
|
|
|
|
audit:
|
|
|
|
cargo audit
|
2024-01-20 19:34:56 +11:00
|
|
|
|
|
|
|
update:
|
|
|
|
cargo update && cargo upgrade
|
|
|
|
cd tesla_api_coverage && cargo update && cargo upgrade
|