2020-06-23 21:35:59 +03:00
|
|
|
#
|
|
|
|
# Continuous Integration (CI)
|
|
|
|
# This pipeline builds and runs MsQuic performance tests.
|
|
|
|
#
|
|
|
|
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
|
|
|
name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: mode
|
|
|
|
type: string
|
|
|
|
displayName: Mode
|
|
|
|
default: Normal
|
|
|
|
values:
|
|
|
|
- Normal
|
|
|
|
- PGO
|
|
|
|
- Record
|
|
|
|
|
|
|
|
#
|
|
|
|
# Builds
|
|
|
|
#
|
|
|
|
|
|
|
|
stages:
|
|
|
|
|
|
|
|
- stage: build_windows
|
|
|
|
displayName: Build Windows
|
|
|
|
dependsOn: []
|
|
|
|
variables:
|
|
|
|
runCodesignValidationInjection: false
|
|
|
|
jobs:
|
|
|
|
# Officially supported configurations.
|
|
|
|
- template: ./templates/build-config-user.yml
|
|
|
|
parameters:
|
|
|
|
image: windows-latest
|
|
|
|
platform: windows
|
|
|
|
arch: x86
|
|
|
|
tls: schannel
|
|
|
|
config: Release
|
|
|
|
${{ if eq(parameters.mode, 'PGO') }}:
|
|
|
|
extraBuildArgs: -DisableTest -PGO
|
|
|
|
${{ if ne(parameters.mode, 'PGO') }}:
|
|
|
|
extraBuildArgs: -DisableTest
|
|
|
|
- template: ./templates/build-config-user.yml
|
|
|
|
parameters:
|
|
|
|
image: windows-latest
|
|
|
|
platform: windows
|
|
|
|
arch: x64
|
|
|
|
tls: schannel
|
|
|
|
config: Release
|
|
|
|
${{ if eq(parameters.mode, 'PGO') }}:
|
|
|
|
extraBuildArgs: -DisableTest -PGO
|
|
|
|
${{ if ne(parameters.mode, 'PGO') }}:
|
|
|
|
extraBuildArgs: -DisableTest
|
|
|
|
|
|
|
|
#
|
|
|
|
# Performance Tests
|
|
|
|
#
|
|
|
|
|
|
|
|
- stage: performance
|
|
|
|
displayName: Performance Testing (${{ parameters.mode }})
|
|
|
|
dependsOn:
|
|
|
|
- build_windows
|
|
|
|
jobs:
|
2020-07-02 21:50:34 +03:00
|
|
|
- template: ./templates/run-performance.yml
|
2020-06-23 21:35:59 +03:00
|
|
|
parameters:
|
2020-07-02 21:50:34 +03:00
|
|
|
pool: MsQuic-Win-Perf
|
|
|
|
platform: windows
|
2020-06-23 21:35:59 +03:00
|
|
|
tls: schannel
|
|
|
|
${{ if eq(parameters.mode, 'PGO') }}:
|
|
|
|
extraArgs: -PGO
|
|
|
|
${{ if eq(parameters.mode, 'Record') }}:
|
|
|
|
extraArgs: -Record
|
2020-07-02 21:50:34 +03:00
|
|
|
- template: ./templates/run-performance.yml
|
2020-06-23 21:35:59 +03:00
|
|
|
parameters:
|
2020-07-02 21:50:34 +03:00
|
|
|
pool: MsQuic-Win-Perf
|
|
|
|
platform: windows
|
2020-06-23 21:35:59 +03:00
|
|
|
tls: schannel
|
|
|
|
arch: x86
|
|
|
|
${{ if eq(parameters.mode, 'PGO') }}:
|
|
|
|
extraArgs: -PGO
|
|
|
|
${{ if eq(parameters.mode, 'Record') }}:
|
|
|
|
extraArgs: -Record
|