зеркало из https://github.com/dotnet/razor.git
144 строки
4.2 KiB
YAML
144 строки
4.2 KiB
YAML
#
|
|
# See https://docs.microsoft.com/azure/devops/pipelines/yaml-schema for reference.
|
|
#
|
|
|
|
variables:
|
|
- template: /eng/common/templates/variables/pool-providers.yml
|
|
- name: Build.Repository.Clean
|
|
value: true
|
|
- name: _TeamName
|
|
value: AspNetCore
|
|
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
|
|
value: true
|
|
- name: LogLevel
|
|
value: 'Verbose'
|
|
- name: RAZOR_TRACE
|
|
value: 'Verbose'
|
|
- name: RAZOR_RUN_CONDITIONAL_IDE_TESTS
|
|
value: 'true'
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
schedules:
|
|
- cron: '0 */12 * * *'
|
|
displayName: Every 12 hours
|
|
branches:
|
|
include:
|
|
- main
|
|
always: true # run the pipeline even if there are no code changes
|
|
|
|
stages:
|
|
- stage: build
|
|
displayName: Build
|
|
jobs:
|
|
# Windows based jobs. This needs to be separate from Unix based jobs because it generates
|
|
# TRX files. That can only be toggled at the top level template level, not at the individual
|
|
# job.
|
|
- template: /eng/common/templates/jobs/jobs.yml
|
|
parameters:
|
|
enablePublishBuildArtifacts: false
|
|
enablePublishTestResults: true
|
|
enableTelemetry: true
|
|
helixRepo: dotnet/razor
|
|
helixType: build.product/
|
|
|
|
jobs:
|
|
- job: Windows
|
|
timeoutInMinutes: 120
|
|
pool:
|
|
name: $(DncEngPublicBuildPool)
|
|
demands: ImageOverride -equals windows.vs2022preview.scout.amd64.open
|
|
strategy:
|
|
matrix:
|
|
debug:
|
|
_BuildConfig: Debug
|
|
_PublishArgs: ''
|
|
release:
|
|
_BuildConfig: Release
|
|
_PublishArgs: ''
|
|
|
|
variables:
|
|
- _BuildArgs: ''
|
|
- XUNIT_LOGS: '$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)'
|
|
- __VSNeverShowWhatsNew: 1
|
|
|
|
steps:
|
|
- task: NuGetCommand@2
|
|
displayName: 'Clear NuGet caches'
|
|
condition: succeeded()
|
|
inputs:
|
|
command: custom
|
|
arguments: 'locals all -clear'
|
|
|
|
- powershell: ./eng/scripts/InstallProcDump.ps1
|
|
displayName: Install ProcDump
|
|
|
|
- powershell: ./eng/scripts/StartDumpCollectionForHangingBuilds.ps1
|
|
$(ProcDumpPath)procdump.exe artifacts/log/$(_BuildConfig)
|
|
(Get-Date).AddMinutes(60)
|
|
devenv, xunit.console, xunit.console.x86
|
|
displayName: Start background dump collection
|
|
|
|
# Don't create a binary log until we can customize the name
|
|
# https://github.com/dotnet/arcade/pull/12988
|
|
- script: eng\cibuild.cmd
|
|
-configuration $(_BuildConfig)
|
|
-msbuildEngine vs
|
|
-prepareMachine
|
|
-restore
|
|
-nobl
|
|
name: Restore
|
|
displayName: Restore
|
|
condition: succeeded()
|
|
|
|
- powershell: eng\SetupVSHive.ps1
|
|
displayName: Setup VS Hive
|
|
|
|
- script: eng\cibuild.cmd
|
|
-configuration $(_BuildConfig)
|
|
-msbuildEngine vs
|
|
-prepareMachine
|
|
-build
|
|
-pack
|
|
-publish
|
|
-sign
|
|
$(_BuildArgs)
|
|
$(_PublishArgs)
|
|
$(_InternalRuntimeDownloadArgs)
|
|
name: Build
|
|
displayName: Build and Deploy
|
|
condition: succeeded()
|
|
|
|
- script: eng\CIBuild.cmd
|
|
-configuration $(_BuildConfig)
|
|
-prepareMachine
|
|
-test
|
|
-nobl
|
|
name: Run_Unit_Tests
|
|
displayName: Run Unit Tests
|
|
condition: succeeded()
|
|
|
|
- script: eng\CIBuild.cmd
|
|
-configuration $(_BuildConfig)
|
|
-prepareMachine
|
|
-integrationTest
|
|
name: Run_Integration_Tests
|
|
displayName: Run Integration Tests
|
|
condition: succeeded()
|
|
|
|
- powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/log/$(_BuildConfig)
|
|
displayName: Finish background dump collection
|
|
continueOnError: true
|
|
condition: always()
|
|
|
|
- publish: artifacts/log/$(_BuildConfig)
|
|
artifact: $(Agent.Os)_$(Agent.JobName) Attempt $(System.JobAttempt) Logs
|
|
displayName: Publish Build Artifacts
|
|
condition: always()
|
|
|
|
- publish: artifacts/TestResults/$(_BuildConfig)
|
|
artifact: $(Agent.Os)_$(Agent.JobName) Attempt $(System.JobAttempt) TestResults
|
|
displayName: Publish Test Artifacts
|
|
condition: always() |