2019-05-29 23:06:38 +03:00
|
|
|
#
|
|
|
|
# See https://docs.microsoft.com/azure/devops/pipelines/yaml-schema for reference.
|
|
|
|
#
|
|
|
|
|
2018-12-02 03:25:55 +03:00
|
|
|
variables:
|
2019-01-16 02:56:11 +03:00
|
|
|
- name: Build.Repository.Clean
|
|
|
|
value: true
|
|
|
|
- name: _TeamName
|
|
|
|
value: AspNetCore
|
2019-03-01 02:01:52 +03:00
|
|
|
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
|
|
|
|
value: true
|
2019-04-11 05:27:11 +03:00
|
|
|
- name: _PublishUsingPipelines
|
|
|
|
value: true
|
|
|
|
- name: _DotNetArtifactsCategory
|
2019-09-24 01:11:16 +03:00
|
|
|
value: .NETCORE
|
|
|
|
- name: _DotNetValidationArtifactsCategory
|
2019-09-24 21:10:08 +03:00
|
|
|
value: .NETCOREVALIDATION
|
2019-12-11 00:05:34 +03:00
|
|
|
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
|
|
|
|
- group: DotNet-MSRC-Storage
|
|
|
|
- name: _InternalRuntimeDownloadArgs
|
|
|
|
value: /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet
|
|
|
|
/p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
|
|
|
|
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
|
|
|
|
- name: _InternalRuntimeDownloadArgs
|
|
|
|
value: ''
|
2020-03-07 09:17:29 +03:00
|
|
|
|
2018-12-02 03:25:55 +03:00
|
|
|
trigger:
|
2019-05-29 23:06:38 +03:00
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-20 03:30:20 +03:00
|
|
|
- main
|
2021-05-18 19:31:45 +03:00
|
|
|
- main-vs-deps
|
2019-05-29 23:06:38 +03:00
|
|
|
- release/*
|
2019-11-25 22:03:52 +03:00
|
|
|
- internal/release/3.*
|
2018-12-02 03:25:55 +03:00
|
|
|
|
|
|
|
pr:
|
2019-05-29 23:06:38 +03:00
|
|
|
autoCancel: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
2018-12-02 03:25:55 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
stages:
|
|
|
|
- stage: build
|
|
|
|
displayName: Build
|
|
|
|
jobs:
|
2021-06-16 01:42:16 +03:00
|
|
|
- ${{ if and(and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
|
2021-06-02 21:14:43 +03:00
|
|
|
- template: /eng/common/templates/job/onelocbuild.yml
|
|
|
|
parameters:
|
2021-06-16 01:42:16 +03:00
|
|
|
LclSource: lclFilesfromPackage
|
|
|
|
LclPackageId: 'LCL-JUNO-PROD-RAZORTOOL'
|
2021-10-08 00:43:35 +03:00
|
|
|
MirrorRepo: razor-tooling
|
2021-06-02 21:14:43 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
- template: /eng/common/templates/jobs/jobs.yml
|
|
|
|
parameters:
|
|
|
|
enablePublishBuildArtifacts: false
|
|
|
|
enablePublishTestResults: false
|
|
|
|
enablePublishUsingPipelines: false
|
|
|
|
jobs:
|
2020-04-04 09:15:30 +03:00
|
|
|
# Code check
|
|
|
|
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- job: Code_check
|
|
|
|
displayName: Code check
|
|
|
|
pool:
|
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2021-10-13 19:51:17 +03:00
|
|
|
name: NetCore1ESPool-Public
|
2021-12-21 00:05:23 +03:00
|
|
|
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
|
2020-04-04 09:15:30 +03:00
|
|
|
${{ if ne(variables['System.TeamProject'], 'public') }}:
|
2021-10-13 19:51:17 +03:00
|
|
|
name: NetCore1ESPool-Internal
|
2022-01-11 00:45:02 +03:00
|
|
|
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Main
|
2020-04-04 09:15:30 +03:00
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
displayName: Install Node 10.x
|
2019-12-11 00:05:34 +03:00
|
|
|
inputs:
|
2020-04-04 09:15:30 +03:00
|
|
|
versionSpec: 10.x
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'Clear NuGet caches'
|
|
|
|
condition: succeeded()
|
|
|
|
inputs:
|
|
|
|
command: custom
|
|
|
|
arguments: 'locals all -clear'
|
|
|
|
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Setup Private Feeds Credentials
|
|
|
|
inputs:
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
|
|
|
|
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
|
|
|
|
env:
|
|
|
|
Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
2020-05-11 05:32:33 +03:00
|
|
|
- powershell: ./restore.cmd -msbuildEngine dotnet -ci $(_InternalRuntimeDownloadArgs); ./eng/scripts/CodeCheck.ps1 -ci
|
2020-04-04 09:15:30 +03:00
|
|
|
displayName: Run eng/scripts/CodeCheck.ps1
|
2019-02-19 20:17:05 +03:00
|
|
|
|
2019-05-29 23:06:38 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
# Three jobs for each of the three OSes we want to run on
|
|
|
|
- template: /eng/common/templates/jobs/jobs.yml
|
|
|
|
parameters:
|
|
|
|
enablePublishBuildArtifacts: true
|
|
|
|
enablePublishTestResults: true
|
|
|
|
enableTelemetry: true
|
2021-10-08 00:43:35 +03:00
|
|
|
helixRepo: dotnet/razor-tooling
|
2019-07-22 08:17:43 +03:00
|
|
|
helixType: build.product/
|
|
|
|
# enableMicrobuild can't be read from a user-defined variable (Azure DevOps limitation)
|
|
|
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
enableMicrobuild: true
|
|
|
|
enablePublishBuildAssets: true
|
2020-06-08 20:41:02 +03:00
|
|
|
enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}
|
2019-07-22 08:17:43 +03:00
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
|
|
pool:
|
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2021-10-13 19:51:17 +03:00
|
|
|
name: NetCore1ESPool-Public
|
2022-01-11 00:45:02 +03:00
|
|
|
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
|
2019-07-22 08:17:43 +03:00
|
|
|
${{ if ne(variables['System.TeamProject'], 'public') }}:
|
2021-10-13 19:51:17 +03:00
|
|
|
name: NetCore1ESPool-Internal
|
2022-01-11 00:45:02 +03:00
|
|
|
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre
|
2019-07-22 08:17:43 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-04-01 20:45:00 +03:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
|
|
|
debug:
|
|
|
|
_BuildConfig: Debug
|
2020-06-08 20:41:02 +03:00
|
|
|
_PublishArgs: ''
|
2020-04-01 20:45:00 +03:00
|
|
|
release:
|
|
|
|
_BuildConfig: Release
|
2020-06-08 20:41:02 +03:00
|
|
|
_PublishArgs: ''
|
2020-04-01 20:45:00 +03:00
|
|
|
${{ if ne(variables['System.TeamProject'], 'public') }}:
|
|
|
|
release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
${{ if in(variables['Build.Reason'], 'PullRequest') }}:
|
2020-06-08 20:41:02 +03:00
|
|
|
_PublishArgs: ''
|
2020-04-01 20:45:00 +03:00
|
|
|
${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
|
|
|
|
_DotNetPublishToBlobFeed: true
|
|
|
|
_PublishArgs: /p:PublishToSymbolServer=true
|
|
|
|
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
|
|
|
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
|
|
|
/p:PublishToAzure=true
|
|
|
|
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
|
|
|
|
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
|
|
|
|
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
|
|
|
|
/p:DotNetPublishBlobFeedUrl=$(_PublishBlobFeedUrl)
|
|
|
|
/p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
|
2019-07-22 08:17:43 +03:00
|
|
|
variables:
|
|
|
|
- _DotNetPublishToBlobFeed : false
|
|
|
|
- _PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json
|
|
|
|
- _BuildArgs: ''
|
2022-01-11 00:45:02 +03:00
|
|
|
- XUNIT_LOGS: '$(Build.SourcesDirectory)\artifacts\log\Debug'
|
2019-04-15 00:00:50 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
# Variables for internal Official builds
|
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- _SignType: real
|
|
|
|
- _BuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName)
|
|
|
|
/p:OfficialBuildId=$(Build.BuildNumber)
|
|
|
|
/p:ManifestBuildBranch=$(Build.SourceBranchName)
|
|
|
|
/p:ManifestBuildNumber=$(Build.BuildNumber)
|
2021-10-08 00:43:35 +03:00
|
|
|
/p:VisualStudioDropName=Products/dotnet/razor-tooling/$(Build.SourceBranchName)/$(Build.BuildNumber)
|
2019-01-16 02:56:11 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- group: DotNet-Blob-Feed
|
|
|
|
- group: DotNet-Symbol-Server-Pats
|
|
|
|
steps:
|
2019-09-20 00:36:19 +03:00
|
|
|
- task: NodeTool@0
|
|
|
|
displayName: Install Node 10.x
|
|
|
|
inputs:
|
|
|
|
versionSpec: 10.x
|
2020-02-26 00:48:09 +03:00
|
|
|
- powershell: npm install -g yarn
|
|
|
|
displayName: Install yarn
|
|
|
|
condition: succeeded()
|
2019-07-22 08:17:43 +03:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'Clear NuGet caches'
|
|
|
|
condition: succeeded()
|
|
|
|
inputs:
|
|
|
|
command: custom
|
|
|
|
arguments: 'locals all -clear'
|
2019-09-19 19:36:02 +03:00
|
|
|
|
|
|
|
- powershell: ./eng/scripts/InstallProcDump.ps1
|
|
|
|
displayName: Install ProcDump
|
|
|
|
- powershell: ./eng/scripts/StartDumpCollectionForHangingBuilds.ps1 $(ProcDumpPath)procdump.exe artifacts/log/$(_BuildConfig) (Get-Date).AddMinutes(25) dotnet, msbuild
|
|
|
|
displayName: Start background dump collection
|
2019-12-11 00:05:34 +03:00
|
|
|
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Setup Private Feeds Credentials
|
|
|
|
inputs:
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
|
|
|
|
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
|
|
|
|
env:
|
|
|
|
Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
2019-07-22 08:17:43 +03:00
|
|
|
- script: eng\common\cibuild.cmd
|
|
|
|
-configuration $(_BuildConfig)
|
2020-05-11 05:32:33 +03:00
|
|
|
-msbuildEngine dotnet
|
2019-07-22 08:17:43 +03:00
|
|
|
-prepareMachine
|
2022-01-21 00:22:48 +03:00
|
|
|
-integrationTest
|
2019-07-22 08:17:43 +03:00
|
|
|
$(_BuildArgs)
|
|
|
|
$(_PublishArgs)
|
2019-12-11 00:05:34 +03:00
|
|
|
$(_InternalRuntimeDownloadArgs)
|
2019-07-22 08:17:43 +03:00
|
|
|
name: Build
|
|
|
|
displayName: Build
|
|
|
|
condition: succeeded()
|
2020-05-14 21:40:07 +03:00
|
|
|
- script: eng\common\cibuild.cmd
|
|
|
|
-configuration $(_BuildConfig)
|
|
|
|
-prepareMachine
|
|
|
|
/p:BuildVsix=true
|
2020-05-15 03:36:19 +03:00
|
|
|
/p:BuildProjectReferences=false
|
2020-05-14 21:40:07 +03:00
|
|
|
$(_BuildArgs)
|
2019-07-22 08:17:43 +03:00
|
|
|
$(_PublishArgs)
|
2019-12-11 00:05:34 +03:00
|
|
|
$(_InternalRuntimeDownloadArgs)
|
2020-05-14 21:58:40 +03:00
|
|
|
name: Build_Vsix
|
2020-05-14 21:56:11 +03:00
|
|
|
displayName: Build Vsix
|
2019-07-22 08:17:43 +03:00
|
|
|
condition: succeeded()
|
2020-02-26 00:48:09 +03:00
|
|
|
# Run VSCode functional tests
|
2020-03-24 20:58:49 +03:00
|
|
|
# - powershell: |
|
|
|
|
# . ../../../../activate.ps1
|
|
|
|
# yarn test -- --ci --configuration $(_BuildConfig) --no-restore
|
|
|
|
# deactivate
|
|
|
|
# workingDirectory: $(Build.SourcesDirectory)/src/Razor/test/VSCode.FunctionalTest
|
|
|
|
# displayName: Run VSCode Tests
|
|
|
|
# condition: and(succeeded(), ne(variables['_BuildConfig'], 'Release')) # Temporary: Don't run on Release
|
2019-09-19 19:36:02 +03:00
|
|
|
- powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/log/$(_BuildConfig)
|
|
|
|
displayName: Finish background dump collection
|
|
|
|
continueOnError: true
|
|
|
|
condition: always()
|
2021-02-10 02:53:42 +03:00
|
|
|
- powershell: |
|
|
|
|
$version = $(node -p "require('./package.json').version" | Out-String).Trim()
|
|
|
|
yarn
|
|
|
|
node ./scripts/retrieveDebugProxy.js
|
|
|
|
md $(Build.SourcesDirectory)/artifacts/packages/VSCode/$(_BuildConfig)/ -ea 0
|
2021-11-07 22:41:32 +03:00
|
|
|
npx vsce@1.100.2 package -o $(Build.SourcesDirectory)/artifacts/packages/VSCode/$(_BuildConfig)/blazorwasm-companion-$version.vsix
|
2021-02-10 02:53:42 +03:00
|
|
|
displayName: Produce Blazor WASM Debugging Extension VSIX
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmDebuggingExtension
|
|
|
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
|
2019-07-22 08:17:43 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
2020-02-26 00:48:09 +03:00
|
|
|
displayName: Upload Test Results
|
2019-07-22 08:17:43 +03:00
|
|
|
condition: always()
|
|
|
|
continueOnError: true
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: artifacts/TestResults/$(_BuildConfig)/
|
|
|
|
artifactName: $(Agent.Os)_$(Agent.JobName) TestResults
|
|
|
|
artifactType: Container
|
|
|
|
parallel: true
|
2020-03-24 20:58:49 +03:00
|
|
|
# - task: PublishTestResults@2
|
|
|
|
# displayName: Publish VSCode Test Results
|
|
|
|
# inputs:
|
|
|
|
# testResultsFormat: 'JUnit'
|
|
|
|
# testResultsFiles: '*.xml'
|
|
|
|
# searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
|
|
|
|
# continueOnError: true
|
|
|
|
# condition: always()
|
2019-07-22 08:17:43 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish VSIX Artifacts
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)'
|
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: VSIX_$(Agent.Os)_$(_BuildConfig)
|
|
|
|
continueOnError: true
|
|
|
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish VS for Mac Artifacts
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/MPack/$(_BuildConfig)'
|
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: MPack_$(Agent.Os)_$(_BuildConfig)
|
|
|
|
continueOnError: true
|
|
|
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish package artifacts
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)
|
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: Packages_$(Agent.Os)_$(_BuildConfig)
|
|
|
|
continueOnError: true
|
|
|
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
|
2021-02-10 02:53:42 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish VS Code extension artifacts
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: $(Build.SourcesDirectory)/artifacts/packages/VSCode/$(_BuildConfig)
|
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: BlazorWasmDebuggingExtension
|
|
|
|
continueOnError: true
|
|
|
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
|
2018-12-02 03:25:55 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
- job: macOS
|
|
|
|
pool:
|
2021-11-20 00:31:10 +03:00
|
|
|
vmImage: macOS-11
|
2019-07-22 08:17:43 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
debug:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
steps:
|
2019-09-20 00:36:19 +03:00
|
|
|
- task: NodeTool@0
|
|
|
|
displayName: Install Node 10.x
|
|
|
|
inputs:
|
|
|
|
versionSpec: 10.x
|
2019-12-11 00:05:34 +03:00
|
|
|
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
|
|
|
|
- task: Bash@3
|
|
|
|
displayName: Setup Private Feeds Credentials
|
|
|
|
inputs:
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
|
|
|
|
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
|
|
|
|
env:
|
|
|
|
Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
2019-07-22 08:17:43 +03:00
|
|
|
- script: eng/common/cibuild.sh
|
|
|
|
--configuration $(_BuildConfig)
|
|
|
|
--prepareMachine
|
2019-12-11 00:05:34 +03:00
|
|
|
$(_InternalRuntimeDownloadArgs)
|
2019-07-22 08:17:43 +03:00
|
|
|
name: Build
|
|
|
|
displayName: Build
|
|
|
|
condition: succeeded()
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Upload TestResults
|
|
|
|
condition: always()
|
|
|
|
continueOnError: true
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: artifacts/TestResults/$(_BuildConfig)/
|
|
|
|
artifactName: $(Agent.Os)_$(Agent.JobName) TestResults
|
|
|
|
artifactType: Container
|
|
|
|
parallel: true
|
2018-12-02 03:25:55 +03:00
|
|
|
|
2019-07-22 08:17:43 +03:00
|
|
|
- job: Linux
|
|
|
|
container:
|
|
|
|
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-14.04-cross-0cd4667-20170319080304
|
|
|
|
options: --init # This ensures all the stray defunct processes are reaped.
|
|
|
|
pool:
|
2021-04-08 01:09:53 +03:00
|
|
|
vmImage: ubuntu-18.04
|
2021-04-10 01:07:13 +03:00
|
|
|
variables:
|
|
|
|
- LC_ALL: 'en_US.UTF-8'
|
|
|
|
- LANG: 'en_US.UTF-8'
|
|
|
|
- LANGUAGE: 'en_US.UTF-8'
|
2019-07-22 08:17:43 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
debug:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
steps:
|
2019-09-20 00:36:19 +03:00
|
|
|
- task: NodeTool@0
|
|
|
|
displayName: Install Node 10.x
|
|
|
|
inputs:
|
|
|
|
versionSpec: 10.x
|
2019-12-11 00:05:34 +03:00
|
|
|
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
|
|
|
|
- task: Bash@3
|
|
|
|
displayName: Setup Private Feeds Credentials
|
|
|
|
inputs:
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
|
|
|
|
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
|
|
|
|
env:
|
|
|
|
Token: $(dn-bot-dnceng-artifact-feeds-rw)
|
2019-07-22 08:17:43 +03:00
|
|
|
- script: eng/common/cibuild.sh
|
|
|
|
--configuration $(_BuildConfig)
|
|
|
|
--prepareMachine
|
2019-12-11 00:05:34 +03:00
|
|
|
$(_InternalRuntimeDownloadArgs)
|
2019-07-22 08:17:43 +03:00
|
|
|
name: Build
|
|
|
|
displayName: Build
|
|
|
|
condition: succeeded()
|
|
|
|
- task: PublishBuildArtifacts@1
|
2020-02-26 00:48:09 +03:00
|
|
|
displayName: Upload Test Results
|
2019-07-22 08:17:43 +03:00
|
|
|
condition: always()
|
|
|
|
continueOnError: true
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: artifacts/TestResults/$(_BuildConfig)/
|
|
|
|
artifactName: $(Agent.Os)_$(Agent.JobName) TestResults
|
|
|
|
artifactType: Container
|
|
|
|
parallel: true
|
|
|
|
|
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- template: eng\common\templates\post-build\post-build.yml
|
|
|
|
parameters:
|
2020-09-28 19:26:17 +03:00
|
|
|
publishingInfraVersion: 3
|
|
|
|
enableSigningValidation: false
|
|
|
|
enableNugetValidation: false
|