Skip to content

Commit

Permalink
update build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertk committed Sep 15, 2023
1 parent eedc40a commit 8ff5e78
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
8 changes: 4 additions & 4 deletions eng/azure-pipelines-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ pool:
steps:
- task: UseDotNet@2
inputs:
version: 6.0.413
displayName: Install .NET Core SDK 6.0.413
version: 6.0.414
displayName: Install .NET Core SDK 6.0.414

- task: UseDotNet@2
inputs:
version: 7.0.400
displayName: Install .NET Core SDK 7.0.400
version: 7.0.401
displayName: Install .NET Core SDK 7.0.401

- task: NuGetAuthenticate@0
displayName: Authenticate with NuGet feeds
Expand Down
4 changes: 4 additions & 0 deletions eng/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ trigger:
paths:
exclude: [".github", "Documentation", "*.md"]

variables:
system.debug: 'true'
EnableCoverage: 'false'

jobs:
- job: Windows
displayName: Windows
Expand Down
19 changes: 14 additions & 5 deletions eng/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
steps:
- task: UseDotNet@2
inputs:
version: 6.0.413
displayName: Install .NET Core SDK 6.0.413
version: 6.0.414
displayName: Install .NET Core SDK 6.0.414

- task: UseDotNet@2
inputs:
version: 7.0.400
displayName: Install .NET Core SDK 7.0.400
version: 7.0.401
displayName: Install .NET Core SDK 7.0.401

- script: dotnet restore
displayName: Restore packages
Expand All @@ -20,16 +20,25 @@ steps:

- task: DotNetCoreCLI@2
displayName: Run tests
inputs:
command: test
arguments: -c $(BuildConfiguration) --no-build
testRunTitle: $(Agent.JobName)
condition: and(succeeded(), eq(variables['enableCoverage'], 'false'))

- task: DotNetCoreCLI@2
displayName: Run tests with coverage
inputs:
command: test
arguments: -c $(BuildConfiguration) --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include="[coverlet.collector]*%2c[coverlet.core]*%2c[coverlet.msbuild.tasks]*" /p:Exclude="[coverlet.core.tests.samples.netstandard]*%2c[coverlet.tests.xunit.extensions]*"
testRunTitle: $(Agent.JobName)
condition: and(succeeded(), eq(variables['enableCoverage'], 'true'))

- template: publish-coverlet-result-files.yml

- template: publish-coverage-results.yml
parameters:
reports: $(Build.SourcesDirectory)/**/coverage.opencover.xml
condition: and(succeeded(), eq(variables['BuildConfiguration'], 'Debug'))
condition: and(succeeded(), eq(variables['BuildConfiguration'], 'Debug'), eq(variables['enableCoverage'], 'true'))
assemblyfilters: '-xunit'

1 change: 1 addition & 0 deletions eng/publish-coverlet-result-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ steps:

- task: CopyFiles@2
displayName: Copy trx files
condition: always()
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '**/*.trx'
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "7.0.400"
"version": "7.0.401"
}
}

0 comments on commit 8ff5e78

Please sign in to comment.