-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from BenjaminMichaelis/v9.0
add linux v9.0 devops build
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Cron Schedules have been converted using UTC Time Zone and may need to be updated for your location | ||
trigger: | ||
branches: | ||
include: | ||
- v9.0 | ||
batch: True | ||
schedules: | ||
- cron: 0 6 * * 1 | ||
branches: | ||
include: | ||
- v9.0 | ||
always: true | ||
name: $(date:yyyyMMdd)$(rev:.r) | ||
resources: | ||
repositories: | ||
- repository: self | ||
type: git | ||
ref: v9.0 | ||
jobs: | ||
- job: Phase_1 | ||
displayName: Phase 1 | ||
cancelTimeoutInMinutes: 1 | ||
pool: | ||
name: Hosted Ubuntu 1604 | ||
steps: | ||
- checkout: self | ||
clean: true | ||
- task: DotNetCoreCLI@2 | ||
name: DotNetCoreCLI_1 | ||
displayName: Restore | ||
inputs: | ||
command: restore | ||
projects: '**/EssentialCSharp.sln' | ||
- task: DotNetCoreCLI@2 | ||
name: DotNetCoreCLI_2 | ||
displayName: Build | ||
inputs: | ||
projects: '**/EssentialCSharp.sln' | ||
arguments: --configuration $(BuildConfiguration) -p:LangVersion=9.0 -p:IgnoreExpectedWarnings=true -p:TreatWarningsAsErrors=true | ||
- task: DotNetCoreCLI@2 | ||
name: DotNetCoreCLI_3 | ||
displayName: Test | ||
inputs: | ||
command: test | ||
projects: $(System.DefaultWorkingDirectory)/EssentialCSharp.sln | ||
arguments: --configuration $(BuildConfiguration) -p:LangVersion=9.0 -p:NullableContextOptions=enable --collect:"XPlat Code Coverage" | ||
- task: reportgenerator@4 | ||
displayName: ReportGenerator | ||
inputs: | ||
reports: $(Agent.TempDirectory)/**/coverage.cobertura.xml | ||
targetdir: $(System.DefaultWorkingDirectory)/CoverageReport | ||
verbosity: Verbose | ||
- task: PublishCodeCoverageResults@1 | ||
displayName: Publish code coverage from $(System.DefaultWorkingDirectory)/CoverageReport/Cobertura.xml | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: $(System.DefaultWorkingDirectory)/CoverageReport/Cobertura.xml | ||
failIfCoverageEmpty: true | ||
- task: DotNetCoreCLI@2 | ||
name: DotNetCoreCLI_4 | ||
displayName: Publish | ||
enabled: False | ||
inputs: | ||
command: publish | ||
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory) | ||
- task: PublishBuildArtifacts@1 | ||
name: PublishBuildArtifacts_5 | ||
displayName: Publish Artifact | ||
condition: succeededOrFailed() | ||
enabled: False | ||
inputs: | ||
PathtoPublish: $(build.artifactstagingdirectory) | ||
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)' | ||
... |