51 строка
2.2 KiB
YAML
51 строка
2.2 KiB
YAML
parameters:
|
|
- name: skipNugetPublish
|
|
displayName: Skip Nuget Publish
|
|
type: boolean
|
|
default: false
|
|
|
|
jobs:
|
|
- job: Win32NuGetPublish
|
|
displayName: Win32 FluentTester NuGet Publish
|
|
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
|
|
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
|
|
${{ if not(parameters.skipNugetPublish) }}:
|
|
templateContext:
|
|
outputs:
|
|
- output: nuget
|
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/Microsoft.FluentUI.FluentTesterWin32.nupkg;$(Build.ArtifactStagingDirectory)/Microsoft.FluentUI.E2E.Testing.Data.nupkg'
|
|
packageParentPath: '$(Build.ArtifactStagingDirectory)'
|
|
publishVstsFeed: Office # Required when pushing to internal feed.
|
|
nuGetFeedType: internal # Change to external when publishing to external feed
|
|
publishPackageMetadata: true # Optional
|
|
steps:
|
|
- checkout: self
|
|
persistCredentials: true
|
|
|
|
- template: setup-repo-min-build.yml
|
|
|
|
- script: |
|
|
yarn buildci
|
|
displayName: 'Building the repo [test]'
|
|
|
|
- script: |
|
|
yarn bundle
|
|
workingDirectory: apps/win32
|
|
displayName: 'Bundling FluentTester Win32 app'
|
|
|
|
# Pack the NuGet package
|
|
- task: CmdLine@1
|
|
displayName: 'Create NuGet package for FluentTester Win32 bundle.'
|
|
inputs:
|
|
filename: nuget
|
|
arguments: 'pack Microsoft.FluentUI.FluentTesterWin32.nuspec -OutputDirectory $(Build.ArtifactStagingDirectory) -OutputFileNamesWithoutVersion -Verbosity detailed -Version $(Build.BuildNumber) -properties CommitId=$(Build.SourceVersion)'
|
|
workingFolder: 'apps/win32/nuget'
|
|
|
|
# Pack the NuGet package
|
|
- task: CmdLine@1
|
|
displayName: 'Create NuGet package for E2E testing directory'
|
|
inputs:
|
|
filename: nuget
|
|
arguments: 'pack Microsoft.FluentUI.E2E.Testing.Data.nuspec -OutputDirectory $(Build.ArtifactStagingDirectory) -OutputFileNamesWithoutVersion -Verbosity detailed -Version $(Build.BuildNumber) -properties CommitId=$(Build.SourceVersion)'
|
|
workingFolder: 'apps/E2E/nuget'
|