106 строки
3.0 KiB
YAML
106 строки
3.0 KiB
YAML
variables:
|
|
- template: eng/common-variables.yml
|
|
- name: Build.Repository.Clean
|
|
value: true
|
|
- name: _HelixType
|
|
value: build/product
|
|
- name: _HelixSource
|
|
value: pr/dotnet/xharness/$(Build.SourceBranch)
|
|
- name: _HelixTestType
|
|
value: test/product/
|
|
- name: _XUnitProject
|
|
value: $(Build.SourcesDirectory)/tests/XHarness.Tests/XHarness.Tests.csproj
|
|
- name: _XUnitTargetFramework
|
|
value: netcoreapp3.1
|
|
- name: _XUnitRunnerVersion
|
|
value: 2.4.1
|
|
- name: _DotNetCliPackageType
|
|
value: sdk
|
|
- name: _DotNetCliVersion
|
|
value: 3.1.101
|
|
- name: _HelixAccessToken
|
|
value: ''
|
|
|
|
# CI and PR triggers
|
|
trigger:
|
|
- master
|
|
|
|
pr:
|
|
- master
|
|
|
|
stages:
|
|
- stage: build
|
|
displayName: Build
|
|
jobs:
|
|
- template: /eng/common/templates/job/job.yml
|
|
parameters:
|
|
name: Windows_NT
|
|
enableTelemetry: true
|
|
enablePublishBuildArtifacts: true
|
|
enableMicrobuild: true
|
|
enablePublishUsingPipelines: true
|
|
helixRepo: dotnet/xharness
|
|
pool:
|
|
${{ if eq(variables._RunAsInternal, True) }}:
|
|
name: NetCoreInternal-Pool
|
|
queue: BuildPool.Server.Amd64.VS2019
|
|
${{ if eq(variables._RunAsPublic, True) }}:
|
|
name: NetCorePublic-Pool
|
|
queue: BuildPool.Server.Amd64.VS2019.Open
|
|
strategy:
|
|
matrix:
|
|
release_configuration:
|
|
_BuildConfig: Release
|
|
${{ if eq(variables._RunAsPublic, True) }}:
|
|
debug_configuration:
|
|
_BuildConfig: Debug
|
|
steps:
|
|
- script: eng\common\cibuild.cmd
|
|
-configuration $(_BuildConfig)
|
|
-prepareMachine
|
|
$(_InternalBuildArgs)
|
|
name: Build
|
|
displayName: Build
|
|
condition: succeeded()
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: Publish Logs to VSTS
|
|
inputs:
|
|
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
|
|
PublishLocation: Container
|
|
ArtifactName: $(Agent.Os)_$(Agent.JobName)
|
|
continueOnError: true
|
|
condition: always()
|
|
|
|
- template: /eng/common/templates/job/job.yml
|
|
parameters:
|
|
name: OSX
|
|
enableTelemetry: true
|
|
enablePublishBuildArtifacts: true
|
|
enablePublishUsingPipelines: true
|
|
helixRepo: dotnet/xharness
|
|
pool:
|
|
name: Hosted macOS
|
|
strategy:
|
|
matrix:
|
|
release_configuration:
|
|
_BuildConfig: Release
|
|
${{ if eq(variables._RunAsPublic, True) }}:
|
|
debug_configuration:
|
|
_BuildConfig: Debug
|
|
steps:
|
|
- script: eng/common/cibuild.sh
|
|
--configuration $(_BuildConfig)
|
|
--prepareMachine
|
|
$(_InternalBuildArgs)
|
|
name: Build
|
|
displayName: Build
|
|
condition: succeeded()
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: Publish Logs to VSTS
|
|
inputs:
|
|
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
|
|
PublishLocation: Container
|
|
ArtifactName: $(Agent.Os)_$(Agent.JobName)
|
|
continueOnError: true
|
|
condition: always()
|