
Closes #ISSUE Match the behaviour of our macOS and Linux tests Release Notes: - N/A *or* Added/Fixed/Improved ...
21 lines
577 B
PowerShell
21 lines
577 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
$needAddWorkspace = $false
|
|
if ($args -notcontains "-p" -and $args -notcontains "--package") {
|
|
$needAddWorkspace = $true
|
|
}
|
|
|
|
# https://stackoverflow.com/questions/41324882/how-to-run-a-powershell-script-with-verbose-output/70020655#70020655
|
|
Set-PSDebug -Trace 2
|
|
|
|
$Cargo = $env:CARGO
|
|
if (-not $Cargo) {
|
|
$Cargo = "cargo"
|
|
}
|
|
|
|
if ($needAddWorkspace) {
|
|
& $Cargo clippy @args --workspace --release --all-targets --all-features -- --deny warnings
|
|
}
|
|
else {
|
|
& $Cargo clippy @args --release --all-targets --all-features -- --deny warnings
|
|
}
|