2018-08-18 07:06:51 +02:00
|
|
|
name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr)
|
2018-11-09 20:38:44 +01:00
|
|
|
trigger:
|
2019-01-17 00:29:46 +01:00
|
|
|
# Batch merge builds together while a merge build is running
|
|
|
|
batch: true
|
2018-11-09 20:38:44 +01:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- release*
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
exclude:
|
|
|
|
- /tools/releaseBuild/**/*
|
2019-01-07 21:54:13 +01:00
|
|
|
- /.vsts-ci/misc-analysis.yml
|
2018-11-09 20:38:44 +01:00
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- release*
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
exclude:
|
|
|
|
- /tools/releaseBuild/**/*
|
2019-01-07 21:54:13 +01:00
|
|
|
- /.vsts-ci/misc-analysis.yml
|
2018-08-18 07:06:51 +02:00
|
|
|
|
|
|
|
variables:
|
|
|
|
GIT_CONFIG_PARAMETERS: "'core.autocrlf=false'"
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
|
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
2019-01-07 21:54:13 +01:00
|
|
|
# Avoid expensive initialization of dotnet cli, see: https://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
|
2018-08-18 07:06:51 +02:00
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- repo: self
|
|
|
|
clean: true
|
|
|
|
|
2019-02-15 01:33:19 +01:00
|
|
|
jobs:
|
2019-03-11 21:00:22 +01:00
|
|
|
- template: templates/ci-build.yml
|
2018-09-06 21:27:49 +02:00
|
|
|
|
2019-02-15 01:33:19 +01:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: CI
|
|
|
|
parentJobs:
|
|
|
|
- win_build
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-02-15 01:33:19 +01:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: CI
|
|
|
|
parentJobs:
|
|
|
|
- win_build
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-02-15 01:33:19 +01:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: Others
|
|
|
|
parentJobs:
|
|
|
|
- win_build
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-02-15 01:33:19 +01:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: Others
|
|
|
|
parentJobs:
|
|
|
|
- win_build
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-02-15 01:33:19 +01:00
|
|
|
- template: templates/windows-packaging.yml
|
|
|
|
|
|
|
|
- job: verify_xunit
|
|
|
|
displayName: Verify xUnit Results
|
|
|
|
pool:
|
|
|
|
name: 'Hosted VS2017'
|
|
|
|
dependsOn:
|
|
|
|
- win_build
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: 'Download build artifacts'
|
|
|
|
inputs:
|
|
|
|
downloadType: specific
|
|
|
|
itemPattern: |
|
|
|
|
xunit/**/*
|
|
|
|
downloadPath: '$(System.ArtifactsDirectory)'
|
2018-08-18 07:06:51 +02:00
|
|
|
|
|
|
|
- powershell: |
|
2019-02-15 01:33:19 +01:00
|
|
|
dir "$(System.ArtifactsDirectory)\*" -Recurse
|
|
|
|
displayName: 'Capture artifacts directory'
|
|
|
|
continueOnError: true
|
2018-08-18 07:06:51 +02:00
|
|
|
|
|
|
|
- powershell: |
|
2019-01-26 00:30:31 +01:00
|
|
|
Import-Module .\tools\ci.psm1
|
2019-02-22 20:57:10 +01:00
|
|
|
$xUnitTestResultsFile = "$(System.ArtifactsDirectory)\xunit\xUnitTestResults.xml"
|
2019-02-15 01:33:19 +01:00
|
|
|
|
2019-02-22 20:57:10 +01:00
|
|
|
Test-XUnitTestResults -TestResultsFile $xUnitTestResultsFile
|
2019-02-15 01:33:19 +01:00
|
|
|
displayName: Test
|
|
|
|
condition: succeeded()
|