Skip to content

Commit 5d4318f

Browse files
committed
Work CI-CD
- Add new step to build smoke test project. ***NO_CI***
1 parent e5e121b commit 5d4318f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,27 @@ stages:
188188
targetPath: '$(Build.ArtifactStagingDirectory)'
189189
artifactName: 'NuGetPackage'
190190
artifactType: 'pipeline'
191+
192+
- pwsh: |
193+
$nugetConfig = @(
194+
'<?xml version="1.0" encoding="utf-8"?>'
195+
'<configuration>'
196+
' <packageSources>'
197+
' <clear />'
198+
' <add key="local-sdk" value="$(Build.ArtifactStagingDirectory)" />'
199+
' <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />'
200+
' </packageSources>'
201+
'</configuration>'
202+
)
203+
$nugetConfig | Set-Content -Path "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"
204+
displayName: Create NuGet config for SmokeTest
205+
206+
- task: DotNetCoreCLI@2
207+
displayName: Build SmokeTest
208+
inputs:
209+
command: 'build'
210+
projects: 'test/SmokeTest/SmokeTest.csproj'
211+
arguments: '--configuration $(buildConfiguration) --configfile "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"'
191212

192213
- task: NuGetCommand@2
193214
condition: >-

0 commit comments

Comments
 (0)