mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 11:13:40 +03:00
Helper scripts to run cargo clippy + test for all features (#874)
This commit is contained in:
parent
ad717c6f33
commit
8cba944c11
14
.scripts/cargo-check.ps1
Normal file
14
.scripts/cargo-check.ps1
Normal 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
16
.scripts/cargo-check.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user