Skip to content

Commit 4a546ac

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

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,26 @@ stages:
188188
targetPath: '$(Build.ArtifactStagingDirectory)'
189189
artifactName: 'NuGetPackage'
190190
artifactType: 'pipeline'
191+
192+
- pwsh: |
193+
@"
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+
"@ | Set-Content -Path "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"
203+
displayName: Create NuGet config for SmokeTest
204+
205+
- task: DotNetCoreCLI@2
206+
displayName: Build SmokeTest
207+
inputs:
208+
command: 'build'
209+
projects: 'test/SmokeTest/SmokeTest.csproj'
210+
arguments: '--configuration $(buildConfiguration) --configfile "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"'
191211

192212
- task: NuGetCommand@2
193213
condition: >-

0 commit comments

Comments
 (0)