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*
|
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:
|
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
|
2019-04-02 01:58:43 +02:00
|
|
|
|
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
|
2019-10-24 21:45:26 +02:00
|
|
|
__SuppressAnsiEscapeSequences: 1
|
2018-08-18 07:06:51 +02:00
|
|
|
|
|
|
|
resources:
|
|
|
|
- repo: self
|
|
|
|
clean: true
|
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
stages:
|
|
|
|
- stage: BuildWin
|
|
|
|
displayName: Build for Windows
|
|
|
|
jobs:
|
|
|
|
- template: templates/ci-build.yml
|
2018-09-06 21:27:49 +02:00
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
- stage: TestWin
|
|
|
|
displayName: Test for Windows
|
|
|
|
jobs:
|
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: CI
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: CI
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: UnelevatedPesterTests
|
|
|
|
tagSet: Others
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
- template: templates/windows-test.yml
|
|
|
|
parameters:
|
|
|
|
purpose: ElevatedPesterTests
|
|
|
|
tagSet: Others
|
2018-08-18 07:06:51 +02:00
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
- template: templates/verify-xunit.yml
|
|
|
|
parameters:
|
|
|
|
pool: 'Hosted VS2017'
|
|
|
|
|
2019-07-16 02:02:18 +02:00
|
|
|
- template: templates/nanoserver.yml
|
|
|
|
|
2019-05-16 19:30:50 +02:00
|
|
|
- stage: PackagingWin
|
|
|
|
displayName: Packaging for Windows
|
|
|
|
dependsOn: [] # by specifying an empty array, this stage doesn't depend on the stage before it
|
|
|
|
jobs:
|
|
|
|
# Unlike daily builds, we do not upload nuget package to MyGet so we do not wait on tests to finish.
|
|
|
|
- template: templates/windows-packaging.yml
|
2019-02-15 01:33:19 +01:00
|
|
|
|