| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- trigger:
- branches:
- include:
- - master
- - rel/*
- paths:
- include:
- - Ix.NET/Source/*
- - .editorconfig
- - azure-pipelines.ix.yml
- pr:
- branches:
- include:
- - master
- - rel/*
- - IxAsyncCSharp8
- paths:
- include:
- - Ix.NET/Source/*
- - .editorconfig
- - azure-pipelines.ix.yml
- pool:
- vmImage: vs2017-win2016
- variables:
- BuildConfiguration: Release
-
- steps:
- - task: DotNetCoreInstaller@0
- inputs:
- version: '3.0.100-preview4-010374'
- - task: DotNetCoreCLI@2
- inputs:
- command: custom
- custom: tool
- arguments: install --tool-path . nbgv
- displayName: Install NBGV tool
- - script: nbgv cloud -p Ix.NET\Source
- displayName: Set Version
- - task: DotNetCoreCLI@2
- inputs:
- command: restore
- projects: Ix.NET/Source/**/*.csproj
- displayName: Restore
- - task: DotNetCoreCLI@2
- inputs:
- command: pack
- packagesToPack: Ix.NET/Source/**/System.Interactive*.csproj;Ix.NET/Source/**/System.Linq.*.csproj;!Ix.NET/Source/**/*.Tests*.csproj;!Ix.NET/Source/refs/**
- configuration: $(BuildConfiguration)
- packDirectory: $(Build.ArtifactStagingDirectory)\artifacts
- verbosityPack: Minimal
- displayName: Pack
- - task: DotNetCoreCLI@2
- inputs:
- command: custom
- custom: tool
- arguments: install --tool-path . dotnet-reportgenerator-globaltool
- displayName: Install ReportGenerator tool
- - task: DotNetCoreCLI@2
- inputs:
- command: test
- projects: Ix.NET/Source/**/*.Tests.csproj
- arguments: -c $(BuildConfiguration) -- RunConfiguration.DisableAppDomain=true
- displayName: Run Tests
- - script: reportgenerator -reports:$(Build.SourcesDirectory)/Ix.NET/Source/coverlet/raw/**/coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)/Ix.NET/Source/coverlet/reports -reporttypes:"HtmlInline_AzurePipelines;Cobertura"
- displayName: Create reports
- - task: PublishCodeCoverageResults@1
- displayName: 'Publish code coverage'
- inputs:
- codeCoverageTool: Cobertura
- summaryFileLocation: '$(Build.SourcesDirectory)/Ix.NET/Source/coverlet/reports/Cobertura.xml'
- reportDirectory: '$(Build.SourcesDirectory)/Ix.NET/Source/coverlet/reports'
- - task: DotNetCoreCLI@2
- inputs:
- command: custom
- custom: tool
- arguments: install --tool-path . Codecov.Tool
- displayName: Install Codecov tool
- condition: and(succeeded(), not(eq(variables['CODECOV_TOKEN'], '')))
- - script: codecov -f $(Build.SourcesDirectory)/Ix.NET/Source/coverlet/reports/Cobertura.xml --flag ixnet
- env:
- CODECOV_TOKEN: $(CODECOV_TOKEN)
- displayName: Upload coverage to Codecov
- condition: and(succeeded(), not(eq(variables['CODECOV_TOKEN'], '')))
- - task: PowerShell@2
- displayName: Authenticode Sign Packages
- inputs:
- filePath: Ix.NET/Source/build/Sign-Package.ps1
- env:
- SignClientUser: $(SignClientUser)
- SignClientSecret: $(SignClientSecret)
- ArtifactDirectory: $(Build.ArtifactStagingDirectory)\artifacts
- condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- - task: PublishBuildArtifacts@1
- inputs:
- PathtoPublish: $(Build.ArtifactStagingDirectory)\artifacts
- ArtifactName: artifacts
- publishLocation: Container
|