File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
7475warn_as_error=false
7576properties=" "
7677source_build=false
78+ solution_to_build=" Compilers.sln"
7779
7880args=" "
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
205212function BuildSolution {
206- local solution=" Compilers.sln "
213+ local solution=$solution_to_build
207214 echo " $solution :"
208215
209216 InitializeToolset
You can’t perform that action at this time.
0 commit comments