2018-08-15 01:23:50 +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*
|
2019-04-19 20:27:33 +02:00
|
|
|
- feature*
|
2018-11-09 20:38:44 +01:00
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
exclude:
|
2021-10-28 22:48:41 +02:00
|
|
|
- .vsts-ci/misc-analysis.yml
|
|
|
|
- .github/ISSUE_TEMPLATE/*
|
|
|
|
- .dependabot/config.yml
|
2021-04-30 18:34:26 +02:00
|
|
|
- test/perf/*
|
2018-11-09 20:38:44 +01:00
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- release*
|
2019-04-19 20:27:33 +02:00
|
|
|
- feature*
|
2018-11-09 20:38:44 +01:00
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
exclude:
|
2020-10-02 18:51:09 +02:00
|
|
|
- .dependabot/config.yml
|
2021-04-09 19:26:47 +02:00
|
|
|
- .github/ISSUE_TEMPLATE/*
|
|
|
|
- .vsts-ci/misc-analysis.yml
|
2021-02-08 22:25:14 +01:00
|
|
|
- .vsts-ci/windows.yml
|
|
|
|
- .vsts-ci/windows/*
|
2021-10-28 22:48:41 +02:00
|
|
|
- cgmanifest.json
|
|
|
|
- LICENSE.txt
|
2021-04-09 19:26:47 +02:00
|
|
|
- test/common/markdown/*
|
2021-04-30 18:34:26 +02:00
|
|
|
- test/perf/*
|
2021-04-09 19:26:47 +02:00
|
|
|
- tools/releaseBuild/*
|
|
|
|
- tools/releaseBuild/azureDevOps/templates/*
|
2021-11-10 02:30:56 +01:00
|
|
|
- README.md
|
|
|
|
- .spelling
|
2019-04-15 20:49:17 +02:00
|
|
|
|
2018-08-15 01:23:50 +02:00
|
|
|
variables:
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
|
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
2019-03-24 02:23:07 +01:00
|
|
|
# Avoid expensive initialization of dotnet cli, see: https://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
|
2018-08-15 01:23:50 +02:00
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
2019-10-24 21:45:26 +02:00
|
|
|
__SuppressAnsiEscapeSequences: 1
|
2018-08-15 01:23:50 +02:00
|
|
|
|
|
|
|
resources:
|
|
|
|
- repo: self
|
|
|
|
clean: true
|
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
stages:
|
|
|
|
- stage: BuildLinux
|
|
|
|
displayName: Build for Linux
|
|
|
|
jobs:
|
|
|
|
- template: templates/ci-build.yml
|
|
|
|
parameters:
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
jobName: linux_build
|
|
|
|
displayName: linux Build
|
2018-12-05 01:57:29 +01:00
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
- stage: TestLinux
|
|
|
|
displayName: Test for Linux
|
|
|
|
jobs:
|
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
name: Linux
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: CI
|
2018-09-06 21:27:49 +02:00
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
name: Linux
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: CI
|
2018-09-19 01:47:52 +02:00
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
name: Linux
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: Others
|
2018-08-15 01:23:50 +02:00
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
- template: templates/nix-test.yml
|
|
|
|
parameters:
|
|
|
|
name: Linux
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: Others
|
2019-04-17 00:13:30 +02:00
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
- template: templates/verify-xunit.yml
|
|
|
|
parameters:
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
|
2021-04-10 18:53:40 +02:00
|
|
|
- stage: PackageLinux
|
|
|
|
displayName: Package Linux
|
|
|
|
dependsOn: ["BuildLinux"]
|
|
|
|
jobs:
|
|
|
|
- template: linux/templates/packaging.yml
|
|
|
|
parameters:
|
2021-08-30 22:56:52 +02:00
|
|
|
pool: ubuntu-20.04
|
2021-04-10 18:53:40 +02:00
|
|
|
|
2020-05-29 19:01:29 +02:00
|
|
|
- stage: CodeCovTestPackage
|
2019-04-17 00:13:30 +02:00
|
|
|
displayName: CodeCoverage and Test Packages
|
2020-05-29 19:01:29 +02:00
|
|
|
dependsOn: [] # by specifying an empty array, this stage doesn't depend on the stage before it
|
|
|
|
jobs:
|
|
|
|
- job: CodeCovTestPackage
|
|
|
|
displayName: CodeCoverage and Test Packages
|
|
|
|
pool:
|
2021-08-30 22:56:52 +02:00
|
|
|
vmImage: ubuntu-20.04
|
2020-05-29 19:01:29 +02:00
|
|
|
steps:
|
|
|
|
- pwsh: |
|
|
|
|
Import-Module .\tools\ci.psm1
|
|
|
|
New-CodeCoverageAndTestPackage
|
|
|
|
displayName: CodeCoverage and Test Package
|