Skip to content

Commit ac5883d

Browse files
committed
run analyzers on linux for speed
1 parent e4224e8 commit ac5883d

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

azure-pipelines.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,10 @@ jobs:
329329
- job: Correctness_Analyzers
330330
pool:
331331
name: NetCore1ESPool-Public
332-
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
332+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
333333
timeoutInMinutes: 35
334334
steps:
335-
- template: eng/pipelines/checkout-windows-task.yml
335+
- template: eng/pipelines/checkout-unix-task.yml
336336

337-
- task: PowerShell@2
337+
- script: ./eng/build.sh --solution Roslyn.sln --restore --build --configuration Debug --prepareMachine --ci --binaryLog --runanalyzers --warnaserror /p:RoslynEnforceCodeStyle=true
338338
displayName: Build with analyzers
339-
inputs:
340-
filePath: eng/build.ps1
341-
arguments: -msbuildEngine dotnet -restore -build -configuration Debug -prepareMachine -ci -binaryLog -runAnalyzers:$true -warnAsError:$true -properties "/p:RoslynEnforceCodeStyle=true"

eng/build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ usage()
3636
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
3737
echo " --warnAsError Treat all warnings as errors"
3838
echo " --sourceBuild Simulate building for source-build"
39+
echo " --solution Soluton to build (Default is Compilers.sln)"
3940
echo ""
4041
echo "Command line arguments starting with '/p:' are passed through to MSBuild."
4142
}
@@ -74,6 +75,7 @@ prepare_machine=false
7475
warn_as_error=false
7576
properties=""
7677
source_build=false
78+
solution_to_build="Compilers.sln"
7779

7880
args=""
7981

@@ -160,6 +162,11 @@ while [[ $# > 0 ]]; do
160162
# have an alias.
161163
source_build=true
162164
;;
165+
--solution)
166+
solution_to_build=$2
167+
args="$args $1"
168+
shift
169+
;;
163170
/p:*)
164171
properties="$properties $1"
165172
;;
@@ -203,7 +210,7 @@ function MakeBootstrapBuild {
203210
}
204211

205212
function BuildSolution {
206-
local solution="Compilers.sln"
213+
local solution=$solution_to_build
207214
echo "$solution:"
208215

209216
InitializeToolset

0 commit comments

Comments
 (0)