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:
|
2019-01-07 21:54:13 +01:00
|
|
|
- /.vsts-ci/misc-analysis.yml
|
2019-03-22 20:23:26 +01:00
|
|
|
- /.github/ISSUE_TEMPLATE/*
|
2019-04-15 20:49:17 +02:00
|
|
|
- /.dependabot/config.yml
|
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-05-29 19:26:30 +02:00
|
|
|
- tools/releaseBuild/*
|
|
|
|
- tools/releaseBuild/azureDevOps/templates/*
|
2019-01-07 21:54:13 +01:00
|
|
|
- /.vsts-ci/misc-analysis.yml
|
2019-03-22 20:23:26 +01:00
|
|
|
- /.github/ISSUE_TEMPLATE/*
|
2019-04-15 20:49:17 +02:00
|
|
|
- /.dependabot/config.yml
|
|
|
|
|
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:
|
|
|
|
pool: ubuntu-16.04
|
|
|
|
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
|
|
|
|
pool: ubuntu-16.04
|
|
|
|
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
|
|
|
|
pool: ubuntu-16.04
|
|
|
|
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
|
|
|
|
pool: ubuntu-16.04
|
|
|
|
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
|
|
|
|
pool: ubuntu-16.04
|
|
|
|
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:
|
|
|
|
pool: ubuntu-16.04
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
vmImage: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- pwsh: |
|
|
|
|
Import-Module .\tools\ci.psm1
|
|
|
|
New-CodeCoverageAndTestPackage
|
|
|
|
displayName: CodeCoverage and Test Package
|