@@ -12,7 +12,9 @@ parameters:
12
12
testProjects : $(Build.SourcesDirectory)/test/UnitTests.proj
13
13
publishRetryConfig : false
14
14
publishXunitResults : false
15
+ testRunnerAdditionalArguments : ' '
15
16
enableSbom : true
17
+ populateInternalRuntimeVariables : false
16
18
timeoutInMinutes : 150
17
19
# ## ENV VARS ###
18
20
testFullMSBuild : false
@@ -71,11 +73,11 @@ jobs:
71
73
targetPath : $(Build.SourcesDirectory)/eng/BuildConfiguration
72
74
artifactName : BuildConfiguration
73
75
74
- # Populate internal runtime variables.
75
- - template : /eng/common/templates /steps/enable-internal-sources.yml
76
- parameters :
77
- legacyCredential : $(dn-bot-dnceng-artifact-feeds-rw)
78
- - template : /eng/common/templates /steps/enable-internal-runtimes.yml
76
+ - ${{ if eq(parameters.populateInternalRuntimeVariables, true) }} :
77
+ - template : /eng/common/${{ parameters.oneESCompat.templateFolderName }} /steps/enable-internal-sources.yml
78
+ parameters :
79
+ legacyCredential : $(dn-bot-dnceng-artifact-feeds-rw)
80
+ - template : /eng/common/${{ parameters.oneESCompat.templateFolderName }} /steps/enable-internal-runtimes.yml
79
81
80
82
- ${{ if eq(parameters.downloadManifestMsiPackages, true) }} :
81
83
- task : DownloadBuildArtifacts@1
84
86
downloadPath : $(Build.SourcesDirectory)/artifacts/downloaded-manifest-msi-packages
85
87
itemPattern : ' **/*Manifest-*.Msi.*.nupkg'
86
88
checkDownloadedFiles : true
87
- displayName : Download Manifest msi packages
89
+ displayName : 🟣 Download Manifest MSI Packages
88
90
89
91
# ############## BUILDING ###############
90
92
- ${{ if eq(parameters.pool.os, 'windows') }} :
@@ -131,30 +133,20 @@ jobs:
131
133
OPENSSL_ENABLE_SHA1_SIGNATURES: 1
132
134
133
135
# ############## TESTING ###############
134
- - ${{ if eq(parameters.pool.os, 'windows') }} :
135
- - ${{ if eq(parameters.targetArchitecture, 'x64') }} :
136
- - powershell : eng/common/build.ps1
137
- -restore -test -ci -prepareMachine -nativeToolsOnMachine
138
- -configuration $(buildConfiguration)
139
- /p:Projects="$(Build.SourcesDirectory)/test/dotnet-new.IntegrationTests/dotnet-new.IntegrationTests.csproj"
140
- /p:TestRunnerAdditionalArguments="-class Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewTestTemplatesTests"
141
- ${{ parameters.runtimeSourceProperties }}
142
- /bl:$(Build.SourcesDirectory)/artifacts/log/$(buildConfiguration)/TestTemplateTests.binlog
143
- displayName : 🟣 Run Test Templates Tests
144
- condition : succeeded()
145
-
146
136
- ${{ if eq(parameters.runTests, true) }} :
147
137
- ${{ if eq(parameters.runAoTTests, true) }} :
148
138
# For the reason this is here, see: https://github.com/dotnet/sdk/issues/22655
149
139
- script : $(Build.SourcesDirectory)/artifacts/bin/redist/$(buildConfiguration)/dotnet/dotnet workload install wasm-tools --skip-manifest-update
150
140
workingDirectory : $(Build.SourcesDirectory)/artifacts/bin
151
141
displayName : 🟣 Install wasm-tools Workload
142
+
152
143
# For the /p:Projects syntax for PowerShell, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1146466335
153
144
- ${{ if eq(parameters.pool.os, 'windows') }} :
154
145
- powershell : eng/common/build.ps1
155
146
-restore -test -ci -prepareMachine -nativeToolsOnMachine
156
147
-configuration $(buildConfiguration)
157
148
/p:Projects=\`"${{ replace(parameters.testProjects, ';', '`;') }}\`"
149
+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
158
150
/p:TargetArchitecture=${{ parameters.targetArchitecture }}
159
151
${{ parameters.runtimeSourceProperties }}
160
152
/p:CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
@@ -167,6 +159,7 @@ jobs:
167
159
HelixAccessToken : $(HelixApiAccessToken)
168
160
RunAoTTests : ${{ parameters.runAoTTests }}
169
161
TestFullMSBuild : ${{ parameters.testFullMSBuild }}
162
+
170
163
- ${{ else }} :
171
164
# For the /p:Projects syntax for Bash, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1690189034
172
165
# The /p:CustomHelixTargetQueue syntax is: <queue-name>@<container-url>
@@ -175,6 +168,7 @@ jobs:
175
168
-restore -test -ci -prepareMachine
176
169
-configuration $(buildConfiguration)
177
170
' /p:Projects="${{ parameters.testProjects }}"'
171
+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
178
172
/p:TargetArchitecture=${{ parameters.targetArchitecture }}
179
173
/p:TargetRid=${{ parameters.runtimeIdentifier }}
180
174
${{ parameters.osProperties }}
0 commit comments