2020-10-22 04:51:53 +03:00
|
|
|
#
|
|
|
|
# See https://docs.microsoft.com/azure/devops/pipelines/yaml-schema for reference.
|
|
|
|
#
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: Build.Repository.Clean
|
|
|
|
value: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-20 03:30:20 +03:00
|
|
|
- main
|
2020-10-22 04:51:53 +03:00
|
|
|
|
|
|
|
pr:
|
|
|
|
autoCancel: true
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-20 03:30:20 +03:00
|
|
|
- main
|
2020-10-22 04:51:53 +03:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: build
|
|
|
|
displayName: Build
|
|
|
|
jobs:
|
|
|
|
- template: /eng/common/templates/jobs/jobs.yml
|
|
|
|
parameters:
|
2021-10-08 00:47:55 +03:00
|
|
|
helixRepo: dotnet/razor-tooling
|
2020-10-22 04:51:53 +03:00
|
|
|
helixType: build.product/
|
|
|
|
enableRichCodeNavigation: true
|
|
|
|
richCodeNavigationEnvironment: 'production'
|
|
|
|
richCodeNavigationLanguage: 'csharp,typescript'
|
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
|
|
pool:
|
|
|
|
name: NetCorePublic-Pool
|
|
|
|
queue: buildpool.windows.10.amd64.vs2019.pre.open
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
displayName: Install Node 10.x
|
|
|
|
inputs:
|
|
|
|
versionSpec: 10.x
|
|
|
|
- powershell: npm install -g yarn
|
|
|
|
displayName: Install yarn
|
|
|
|
condition: succeeded()
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'Clear NuGet caches'
|
|
|
|
condition: succeeded()
|
|
|
|
inputs:
|
|
|
|
command: custom
|
|
|
|
arguments: 'locals all -clear'
|
|
|
|
|
|
|
|
- script: eng\common\cibuild.cmd
|
|
|
|
-configuration Debug
|
|
|
|
-msbuildEngine dotnet
|
|
|
|
-prepareMachine
|
|
|
|
name: Build
|
|
|
|
displayName: Build
|
|
|
|
condition: succeeded()
|