2018-08-11 00:13:31 +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-11 00:13:31 +02:00
|
|
|
variables:
|
|
|
|
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-11 00:13:31 +02:00
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
|
|
# Enable VSTS debug mode until stabilitized
|
|
|
|
system.debug: 'true'
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- repo: self
|
|
|
|
clean: true
|
2018-12-05 01:57:29 +01:00
|
|
|
jobs:
|
2019-03-11 21:00:22 +01:00
|
|
|
- template: templates/ci-build.yml
|
|
|
|
parameters:
|
|
|
|
pool: Hosted macOS
|
|
|
|
jobName: mac_build
|
|
|
|
displayName: macOS Build
|
2018-08-11 00:13:31 +02:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: CI
|
|
|
|
parentJobs:
|
|
|
|
- mac_build
|
2018-12-05 01:57:29 +01:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: CI
|
|
|
|
parentJobs:
|
|
|
|
- mac_build
|
2018-12-05 01:57:29 +01:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: Others
|
|
|
|
parentJobs:
|
|
|
|
- mac_build
|
2018-09-06 21:27:49 +02:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: Others
|
|
|
|
parentJobs:
|
|
|
|
- mac_build
|
2018-08-11 00:13:31 +02:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- job: verify_xunit
|
|
|
|
displayName: Verify xUnit Results
|
|
|
|
pool:
|
|
|
|
name: 'Hosted macOS'
|
|
|
|
dependsOn:
|
|
|
|
- mac_build
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: 'Download build artifacts'
|
|
|
|
inputs:
|
|
|
|
downloadType: specific
|
|
|
|
itemPattern: |
|
|
|
|
xunit/**/*
|
|
|
|
downloadPath: '$(System.ArtifactsDirectory)'
|
2018-08-11 00:13:31 +02:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- pwsh: |
|
|
|
|
Get-ChildItem "$(System.ArtifactsDirectory)\*" -Recurse
|
|
|
|
displayName: 'Capture artifacts directory'
|
|
|
|
continueOnError: true
|
2018-08-11 00:13:31 +02:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
- pwsh: |
|
|
|
|
Import-Module .\tools\ci.psm1
|
|
|
|
$xUnitTestResultsFile = "$(System.ArtifactsDirectory)\xunit\xUnitTestResults.xml"
|
2018-08-11 00:13:31 +02:00
|
|
|
|
2019-03-11 21:00:22 +01:00
|
|
|
Test-XUnitTestResults -TestResultsFile $xUnitTestResultsFile
|
|
|
|
displayName: Test
|
|
|
|
condition: succeeded()
|