@@ -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') }} :
@@ -105,10 +107,6 @@ jobs:
105
107
BuildConfig : $(buildConfiguration)
106
108
TestFullMSBuild : ${{ parameters.testFullMSBuild }}
107
109
108
- - ${{ if eq(parameters.targetArchitecture, 'x64') }} :
109
- - powershell : build/RunTestTemplateTests.ps1
110
- displayName : 🟣 Run Test Templates Tests
111
-
112
110
- ${{ else }} :
113
111
- script : |
114
112
source $(Build.SourcesDirectory)/eng/common/native/init-os-and-arch.sh
@@ -141,12 +139,14 @@ jobs:
141
139
- script : $(Build.SourcesDirectory)/artifacts/bin/redist/$(buildConfiguration)/dotnet/dotnet workload install wasm-tools --skip-manifest-update
142
140
workingDirectory : $(Build.SourcesDirectory)/artifacts/bin
143
141
displayName : 🟣 Install wasm-tools Workload
142
+
144
143
# For the /p:Projects syntax for PowerShell, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1146466335
145
144
- ${{ if eq(parameters.pool.os, 'windows') }} :
146
145
- powershell : eng/common/build.ps1
147
146
-restore -test -ci -prepareMachine -nativeToolsOnMachine
148
147
-configuration $(buildConfiguration)
149
148
/p:Projects=\`"${{ replace(parameters.testProjects, ';', '`;') }}\`"
149
+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
150
150
/p:TargetArchitecture=${{ parameters.targetArchitecture }}
151
151
${{ parameters.runtimeSourceProperties }}
152
152
/p:CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
@@ -159,6 +159,7 @@ jobs:
159
159
HelixAccessToken : $(HelixApiAccessToken)
160
160
RunAoTTests : ${{ parameters.runAoTTests }}
161
161
TestFullMSBuild : ${{ parameters.testFullMSBuild }}
162
+
162
163
- ${{ else }} :
163
164
# For the /p:Projects syntax for Bash, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1690189034
164
165
# The /p:CustomHelixTargetQueue syntax is: <queue-name>@<container-url>
@@ -167,6 +168,7 @@ jobs:
167
168
-restore -test -ci -prepareMachine
168
169
-configuration $(buildConfiguration)
169
170
' /p:Projects="${{ parameters.testProjects }}"'
171
+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
170
172
/p:TargetArchitecture=${{ parameters.targetArchitecture }}
171
173
/p:TargetRid=${{ parameters.runtimeIdentifier }}
172
174
${{ parameters.osProperties }}
0 commit comments