2023-08-29 12:18:07 +10:00
|
|
|
all_tests: no_token_test token_tests
|
|
|
|
|
|
|
|
no_token_test:
|
|
|
|
cargo clippy --all-targets -- -D warnings
|
|
|
|
cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
cargo test
|
|
|
|
|
|
|
|
# These tests require an access token saved in a file called "cli.json"
|
|
|
|
token_tests:
|
|
|
|
cargo run -- api vehicles
|
2023-08-29 13:55:02 +10:00
|
|
|
cargo run --no-default-features --features cli -- api vehicles
|
2023-08-29 12:18:07 +10:00
|
|
|
cargo run -- api energy-sites
|
2023-08-30 15:54:22 +10:00
|
|
|
|
|
|
|
publish version:
|
|
|
|
sed -i "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
|
|
|
|
|
|
|
|
git add Cargo.toml
|
|
|
|
git commit -m "chore: v{{version}}"
|
|
|
|
git tag "v{{version}}"
|
|
|
|
git push origin "v{{version}}"
|
|
|
|
|
|
|
|
cargo publish
|