Skip to content

Commit

Permalink
Temporary Build Fix
Browse files Browse the repository at this point in the history
NuGet complaints that the artifacts dir is not found
  • Loading branch information
Nirmal4G committed Apr 28, 2020
1 parent de3f0bd commit 764ca01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions azure-pipelines-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ trigger: ['master']
pr: none

steps:
- script: dotnet build --configuration $(buildConfiguration) $(sln)
displayName: 'dotnet build $(buildConfiguration)'
- script: mkdir artifacts
displayName: 'Create artifacts dir'
- script: dotnet build $(sln) -c $(buildConfiguration)
displayName: 'Build minsk $(buildConfiguration)'
- task: PowerShell@2
inputs:
filePath: 'genindex.ps1'
Expand Down
13 changes: 9 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ variables:
buildConfiguration: 'Release'
sln: './src/minsk.sln'
tests: './src/Minsk.Tests/Minsk.Tests.csproj'
samples: './samples/samples.sln'

steps:
- script: dotnet build --configuration $(buildConfiguration) $(sln)
displayName: 'dotnet build $(buildConfiguration)'
- script: mkdir artifacts
displayName: 'Create artifacts dir'
- script: dotnet build $(sln) -c $(buildConfiguration)
displayName: 'Build minsk $(buildConfiguration)'
- script: dotnet test $(tests) --logger "xunit;LogFileName=TestResults.xml"
displayName: 'dotnet test'
displayName: 'Run tests'
- script: dotnet build $(samples) -c $(buildConfiguration)
displayName: 'Build samples $(buildConfiguration)'
- task: PublishTestResults@2
displayName: 'publish test results to azure pipelines'
displayName: 'Publish test results'
inputs:
testResultsFormat: 'xUnit'
testResultsFiles: '**/TestResults.xml'
Expand Down

0 comments on commit 764ca01

Please sign in to comment.