Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor new build definitions #6742

Merged
merged 1 commit into from
May 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 75 additions & 57 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@ variables:
value: Products/$(System.TeamProject)/$(Build.Repository.Name)/$(Build.SourceBranchName)/$(Build.BuildNumber)

jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
enablePublishBuildArtifacts: true
enablePublishTestResults: false
enablePublishBuildAssets: true
enablePublishUsingPipelines: $(_PublishUsingPipelines)
enableTelemetry: true
helixRepo: microsoft/visualfsharp
jobs:
# Full-signed internal build
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:

#---------------------------------------------------------------------------------------------------------------------#
# Signed build #
#---------------------------------------------------------------------------------------------------------------------#
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
enablePublishBuildArtifacts: true
enablePublishTestResults: false
enablePublishBuildAssets: true
enablePublishUsingPipelines: $(_PublishUsingPipelines)
enableTelemetry: true
helixRepo: dotnet/fsharp
jobs:
- job: Full_Signed
pool:
name: NetCoreInternal-Pool
Expand Down Expand Up @@ -68,12 +71,22 @@ jobs:
/p:PublishToSymbolServer=true
/p:VisualStudioDropName=$(VisualStudioDropName)

#-----------------------------------------------------------------------------------------------------------------#
# PR builds #
#-----------------------------------------------------------------------------------------------------------------#
#---------------------------------------------------------------------------------------------------------------------#
# PR builds #
#---------------------------------------------------------------------------------------------------------------------#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
enablePublishBuildArtifacts: true
enablePublishTestResults: false
enablePublishBuildAssets: true
enablePublishUsingPipelines: $(_PublishUsingPipelines)
enableTelemetry: true
helixRepo: dotnet/fsharp
jobs:

# Windows
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
# Windows
- job: Windows
pool:
vmImage: windows-2019
Expand All @@ -99,25 +112,23 @@ jobs:
- script: eng\CIBuild.cmd -configuration $(_configuration) -$(_testKind)
displayName: Build / Test

# Windows FCS
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: Windows_FCS
# Linux
- job: Linux
pool:
vmImage: windows-2019
vmImage: ubuntu-16.04
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: fcs\build.cmd TestAndNuget
- script: ./eng/cibuild.sh --configuration $(_BuildConfig) --testcoreclr
displayName: Build / Test

# Linux
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: Linux
# MacOS
- job: MacOS
pool:
vmImage: ubuntu-16.04
vmImage: macOS-10.13
variables:
- name: _SignType
value: Test
Expand All @@ -127,66 +138,73 @@ jobs:
- script: ./eng/cibuild.sh --configuration $(_BuildConfig) --testcoreclr
displayName: Build / Test

# Linux FCS
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: Linux_FCS
# Source Build Linux
- job: SourceBuild_Linux
pool:
vmImage: ubuntu-16.04
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: ./fcs/build.sh Build
- script: ./eng/cibuild.sh --configuration Release /p:DotNetBuildFromSource=true /p:FSharpSourceBuild=true
displayName: Build

# MacOS
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: MacOS
# Source Build Windows
- job: SourceBuild_Windows
pool:
vmImage: macOS-10.13
variables:
- name: _SignType
value: Test
vmImage: windows-2019
steps:
- checkout: self
clean: true
- script: ./eng/cibuild.sh --configuration $(_BuildConfig) --testcoreclr
displayName: Build / Test
- script: eng\CIBuild.cmd -configuration Release -noSign /p:DotNetBuildFromSource=true /p:FSharpSourceBuild=true
displayName: Build

# MacOS FCS
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: MacOS_FCS
#---------------------------------------------------------------------------------------------------------------------#
# FCS builds #
#---------------------------------------------------------------------------------------------------------------------#

- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
enablePublishTestResults: false
enablePublishBuildAssets: true
enablePublishUsingPipelines: false
enableTelemetry: true
helixRepo: dotnet/fsharp
jobs:

- job: Windows_FCS
pool:
vmImage: macOS-10.13
vmImage: windows-2019
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: ./fcs/build.sh Build
displayName: Build
- script: fcs\build.cmd TestAndNuget
displayName: Build / Test

# Source Build Linux
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: SourceBuild_Linux
- job: Linux_FCS
pool:
vmImage: ubuntu-16.04
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: ./eng/cibuild.sh --configuration Release /p:DotNetBuildFromSource=true /p:FSharpSourceBuild=true
- script: ./fcs/build.sh Build
displayName: Build

# Source Build Windows
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: SourceBuild_Windows
- job: MacOS_FCS
pool:
vmImage: windows-2019
vmImage: macOS-10.13
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: eng\CIBuild.cmd -configuration Release -noSign /p:DotNetBuildFromSource=true /p:FSharpSourceBuild=true
- script: ./fcs/build.sh Build
displayName: Build