29
29
packageUpdaterProjPath : $(Build.SourcesDirectory)/test/Microsoft.ML.NugetPackageVersionUpdater/Microsoft.ML.NugetPackageVersionUpdater.csproj
30
30
versionFilePath : $(Build.SourcesDirectory)/test/Microsoft.ML.NugetPackageVersionUpdater/latest_versions.txt
31
31
PROCDUMP_PATH : ' $(Build.SourcesDirectory)/Tools/ProcDump/'
32
+ ${{ if eq(parameters.buildScript, 'build.cmd') }} :
33
+ spaceValue : ' '
34
+ ${{ if eq(parameters.buildScript, './build.sh') }} :
35
+ spaceValue : ' %20'
32
36
strategy :
33
37
matrix :
34
38
${{ if eq(parameters.customMatrixes, '') }} :
@@ -112,10 +116,10 @@ jobs:
112
116
- ${{ if eq(parameters.innerLoop, 'false') }} :
113
117
- ${{ if and(eq(parameters.runSpecific, 'false'), eq(parameters.useVSTestTask, 'false')) }} :
114
118
# TODO: Code coverage needs to be fixed.
115
- - script : ${{ parameters.buildScript }} -configuration $(_configuration) -test -ci /p:TestRunnerAdditionalArguments=-notrait%20Category=SkipInCI # -coverage=${{ parameters.codeCoverage }}
119
+ - script : ${{ parameters.buildScript }} -configuration $(_configuration) -test -ci # -coverage=${{ parameters.codeCoverage }}
116
120
displayName : Run All Tests.
117
121
- ${{ if and(eq(parameters.runSpecific, 'true'), eq(parameters.useVSTestTask, 'false')) }} :
118
- - script : ${{ parameters.buildScript }} -configuration $(_configuration) -ci /p:TestRunnerAdditionalArguments=-trait%20Category =RunSpecificTest # -coverage=${{ parameters.codeCoverage }}
122
+ - script : ${{ parameters.buildScript }} -configuration $(_configuration) -ci /p:TestRunnerAdditionalArguments=' -trait$(spaceValue)Category =RunSpecificTest' # -coverage=${{ parameters.codeCoverage }}
119
123
displayName : Run Specific Tests.
120
124
- ${{ if and(eq(parameters.buildScript, 'build.cmd'), eq(parameters.useVSTestTask, 'true')) }} :
121
125
- task : VSTest@2
@@ -139,7 +143,7 @@ jobs:
139
143
collectDumpOn : onAbortOnly
140
144
publishRunAttachments : true
141
145
- ${{ if eq(parameters.innerLoop, 'true') }} :
142
- - script : ${{ parameters.buildScript }} -configuration $(_configuration) -test -ci /p:TestRunnerAdditionalArguments=-notrait%20Category =SkipInCI # -coverage=${{ parameters.codeCoverage }}
146
+ - script : ${{ parameters.buildScript }} -configuration $(_configuration) -test -ci /p:TestRunnerAdditionalArguments=' -notrait$(spaceValue)Category =SkipInCI' # -coverage=${{ parameters.codeCoverage }}
143
147
displayName : Run CI Tests.
144
148
- script : $(dotnetPath) msbuild -restore build/Codecoverage.proj
145
149
displayName : Upload coverage to codecov.io
0 commit comments