Helper scripts to run cargo clippy + test for all features (#874)

This commit is contained in:
chip 2020-07-21 10:35:22 -07:00 committed by GitHub
parent ad717c6f33
commit 8cba944c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

14
.scripts/cargo-check.ps1 Normal file
View File

@ -0,0 +1,14 @@
Write-Output "Checking tauri crates"
$commands=@("clippy","test")
$features=@("no-server","embedded-server")
foreach ($command in $commands) {
foreach ($feature in $features) {
Write-Output "[$command][$feature] checking tauri"
cargo $command --manifest-path tauri/Cargo.toml --all-targets --features "$feature,cli,all-api"
}
Write-Output "[$command] checking other crates"
cargo $command --workspace --exclude tauri --all-targets --all-features
}

16
.scripts/cargo-check.sh Normal file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -e
echo "Checking tauri crates"
for command in "clippy" "test"
do
for feature in "no-server" "embedded-server"
do
echo "[$command][$feature] checking tauri"
cargo "$command" --manifest-path tauri/Cargo.toml --all-targets --features "$feature,cli,all-api"
done
echo "[$command] checking other crates"
cargo "$command" --workspace --exclude tauri --all-targets --all-features
done