[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] Add CodeAnalysis switch to build.ps1
Add option to enable code analysis on builds, so that developers can get code analysis feedback quicker than relying on SDV builds. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- build.ps1 | 6 ++++-- msbuild.ps1 | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build.ps1 b/build.ps1 index 4ff02c1..42bbdde 100644 --- a/build.ps1 +++ b/build.ps1 @@ -8,7 +8,8 @@ param( [string]$Arch, [string]$SignMode = "TestSign", [switch]$CodeQL, - [switch]$Sdv + [switch]$Sdv, + [switch]$CodeAnalysis ) # @@ -30,7 +31,8 @@ Function Build { ConfigurationBase = $configurationbase[$visualstudioversion]; Arch = $Arch; Type = $Type; - SignMode = $SignMode + SignMode = $SignMode; + CodeAnalysis = $CodeAnalysis } & ".\msbuild.ps1" @params if ($LASTEXITCODE -ne 0) { diff --git a/msbuild.ps1 b/msbuild.ps1 index d9785db..64455ea 100644 --- a/msbuild.ps1 +++ b/msbuild.ps1 @@ -8,7 +8,8 @@ param( [string]$Arch, [Parameter(Mandatory = $true)] [string]$Type, - [string]$SignMode = "TestSign" + [string]$SignMode = "TestSign", + [switch]$CodeAnalysis ) Function Run-MSBuild { @@ -151,10 +152,10 @@ $solutionpath = Resolve-Path $SolutionDir Set-ExecutionPolicy -Scope CurrentUser -Force Bypass if ($Type -eq "free") { - Run-MSBuild $solutionpath "xenbus.sln" $configuration["free"] $platform[$Arch] + Run-MSBuild $solutionpath "xenbus.sln" $configuration["free"] $platform[$Arch] -CodeAnalysis:$CodeAnalysis } elseif ($Type -eq "checked") { - Run-MSBuild $solutionpath "xenbus.sln" $configuration["checked"] $platform[$Arch] + Run-MSBuild $solutionpath "xenbus.sln" $configuration["checked"] $platform[$Arch] -CodeAnalysis:$CodeAnalysis } elseif ($Type -eq "codeql") { $archivepath = "xenbus" -- 2.50.1.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |