Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eng/azure-pipelines.yml')
-rw-r--r--eng/azure-pipelines.yml138
1 files changed, 138 insertions, 0 deletions
diff --git a/eng/azure-pipelines.yml b/eng/azure-pipelines.yml
new file mode 100644
index 0000000..e826b9f
--- /dev/null
+++ b/eng/azure-pipelines.yml
@@ -0,0 +1,138 @@
+trigger:
+ batch: true
+ branches:
+ include:
+ - main
+
+pr:
+ branches:
+ include:
+ - main
+
+variables:
+- name: officialBuild
+ value: ${{ and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
+- name: _BuildConfig
+ value: Release
+- name: _BuildArgs
+ value:
+- name: _DotNetArtifactsCategory
+ value: .NETCore
+- ${{ if eq(variables.officialBuild, 'true') }}:
+ - name: _BuildArgs
+ value: ${{ format('{0} /p:OfficialBuildId=$(Build.BuildNumber) /p:Test=false /p:IntegrationTest=false', variables['_BuildArgs']) }}
+ # Provide HelixApiAccessToken for telemetry
+ - group: DotNet-HelixApi-Access
+
+stages:
+- stage: build
+ displayName: Build
+ jobs:
+ - template: /eng/common/templates/jobs/jobs.yml
+ parameters:
+
+ enableTelemetry: true # send helix telemetry
+ enablePublishUsingPipelines: true
+ enablePublishBuildArtifacts: true # publish build logs to pipeline storage
+ ${{ if eq(variables.officialBuild, 'false') }}:
+ enablePublishTestResults: true
+ testResultsFormat: vstest
+ enablePublishBuildAssets: true # generate build manifests and publish to BAR in internal builds
+ enableMicrobuild: true # only affects internal builds
+ enableSourceBuild: true
+
+ jobs:
+
+ - job: Windows_NT
+ pool:
+ ${{ if eq(variables.officialBuild, 'false') }}:
+ vmImage: windows-latest
+ ${{ if eq(variables.officialBuild, 'true') }}:
+ name: NetCore1ESPool-Internal
+ demands: ImageOverride -equals 1es-windows-2019
+ variables:
+ - ${{ if eq(variables.officialBuild, 'false') }}:
+ - _SignType: test
+ - _PublishArgs: ''
+ - ${{ if eq(variables.officialBuild, 'true') }}:
+ - group: DotNet-Blob-Feed
+ - _TeamName: .NET # required by microbuild install step
+ - _SignType: real # used in the arcade templates that install microbuild.
+ - _DotNetPublishToBlobFeed: true # used by arcade templates that gather build asset manifests
+ - _PublishArgs: /p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
+ /p:DotNetPublishBlobFeedUrl=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
+ /p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
+ /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
+ /p:DotNetPublishUsingPipelines=true
+ - DotNetSignType: ${{ format('{0}', variables._SignType) }} # DotNetSignType defaults to real if not specified
+ steps:
+ - checkout: self
+ submodules: false
+ - script: eng\common\cibuild.cmd -projects $(Build.SourcesDirectory)\Mono.Cecil.sln
+ -configuration $(_BuildConfig) $(_BuildArgs) $(_PublishArgs)
+ -integrationTest
+ -nodeReuse "$false" # https://github.com/Microsoft/vstest/issues/1503
+ env:
+ # https://github.com/Microsoft/vstest/issues/1503#issuecomment-410732193
+ MSBUILDENSURESTDOUTFORTASKPROCESSES: 1
+ ${{ if eq(variables.officialBuild, 'false') }}:
+ displayName: Build Mono.Cecil.sln $(_BuildConfig)
+ ${{ if eq(variables.officialBuild, 'true') }}:
+ displayName: Build and publish Mono.Cecil.sln $(_BuildConfig)
+
+ - job: SourceBuild_Managed
+ displayName: Source-Build (Managed)
+ pool:
+ ${{ if eq(variables.officialBuild, 'false' )}}:
+ vmImage: ubuntu-latest
+ ${{ if eq(variables.officialBuild, 'true' )}}:
+ name: NetCore1ESPool-Internal
+ demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
+ container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343'
+ workspace:
+ clean: all
+ steps:
+ - checkout: self
+ submodules: false
+ - template: /eng/common/templates/steps/source-build.yml
+ parameters:
+ enablePublishTestResults: true
+
+ - ${{ if eq(variables.officialBuild, 'false') }}:
+ - job: Linux
+ condition: eq(variables.officialBuild, 'false')
+ pool:
+ vmImage: ubuntu-latest
+ steps:
+ - checkout: self
+ submodules: false
+ - script: eng/common/cibuild.sh --projects $(Build.SourcesDirectory)/Mono.Cecil.sln
+ --configuration $(_BuildConfig) $(_BuildArgs)
+ --integrationTest
+ --nodeReuse false # https://github.com/Microsoft/vstest/issues/1503
+ env:
+ # https://github.com/Microsoft/vstest/issues/1503#issuecomment-410732193
+ MSBUILDENSURESTDOUTFORTASKPROCESSES: 1
+ displayName: Build Mono.Cecil.sln $(_BuildConfig)
+
+ - ${{ if eq(variables.officialBuild, 'false') }}:
+ - job: macOS
+ pool:
+ vmImage: macOS-latest
+ steps:
+ - checkout: self
+ submodules: false
+ - script: eng/common/cibuild.sh --projects $(Build.SourcesDirectory)/Mono.Cecil.sln
+ --configuration $(_BuildConfig) $(_BuildArgs)
+ --integrationTest
+ --nodeReuse false # https://github.com/Microsoft/vstest/issues/1503
+ env:
+ # https://github.com/Microsoft/vstest/issues/1503#issuecomment-410732193
+ MSBUILDENSURESTDOUTFORTASKPROCESSES: 1
+ displayName: Build Mono.Cecil.sln $(_BuildConfig)
+
+# Post-Build Arcade logic
+- ${{ if eq(variables.officialBuild, 'true') }}:
+ - template: /eng/common/templates/post-build/post-build.yml
+ parameters:
+ publishingInfraVersion: 3