2019-02-18 21:16:17 -05:00
|
|
|
name: $(Date:yyyyMMdd)$(Rev:.r)
|
2019-02-18 17:47:31 -05:00
|
|
|
|
|
|
|
variables:
|
2020-04-12 13:20:37 -04:00
|
|
|
- name: TestProjects
|
2020-06-07 01:37:08 -04:00
|
|
|
value: 'tests/**/*Tests.csproj'
|
2020-04-12 13:20:37 -04:00
|
|
|
- name: RestoreBuildProjects
|
2020-06-07 01:37:08 -04:00
|
|
|
value: 'Jellyfin.Server/Jellyfin.Server.csproj'
|
2020-04-12 13:20:37 -04:00
|
|
|
- name: DotNetSdkVersion
|
2021-07-24 19:35:43 -04:00
|
|
|
value: 5.0.302
|
2019-02-18 17:47:31 -05:00
|
|
|
|
2019-02-18 16:36:24 -05:00
|
|
|
pr:
|
2019-02-18 17:42:24 -05:00
|
|
|
autoCancel: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
batch: true
|
2020-09-02 16:42:00 -04:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
tags:
|
|
|
|
include:
|
|
|
|
- 'v*'
|
2019-02-18 16:26:40 -05:00
|
|
|
|
2019-02-18 17:24:39 -05:00
|
|
|
jobs:
|
2020-09-02 16:53:33 -04:00
|
|
|
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}:
|
2020-01-13 10:22:52 -05:00
|
|
|
- template: azure-pipelines-main.yml
|
|
|
|
parameters:
|
2020-06-07 01:37:08 -04:00
|
|
|
LinuxImage: 'ubuntu-latest'
|
2020-01-13 10:22:52 -05:00
|
|
|
RestoreBuildProjects: $(RestoreBuildProjects)
|
|
|
|
|
2020-09-02 16:42:00 -04:00
|
|
|
- ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
|
2020-01-13 10:22:52 -05:00
|
|
|
- template: azure-pipelines-test.yml
|
|
|
|
parameters:
|
2020-01-15 05:27:38 -05:00
|
|
|
ImageNames:
|
2020-06-07 01:37:08 -04:00
|
|
|
Linux: 'ubuntu-latest'
|
|
|
|
Windows: 'windows-latest'
|
|
|
|
macOS: 'macos-latest'
|
2020-10-01 11:38:36 -04:00
|
|
|
|
|
|
|
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
|
|
|
|
- template: azure-pipelines-test.yml
|
|
|
|
parameters:
|
|
|
|
ImageNames:
|
|
|
|
Linux: 'ubuntu-latest'
|
2020-01-13 10:22:52 -05:00
|
|
|
|
2020-09-02 16:42:00 -04:00
|
|
|
- ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
|
2020-06-07 01:37:08 -04:00
|
|
|
- template: azure-pipelines-abi.yml
|
2020-01-13 10:22:52 -05:00
|
|
|
parameters:
|
2020-01-15 05:27:38 -05:00
|
|
|
Packages:
|
2019-02-18 20:17:57 -05:00
|
|
|
Naming:
|
|
|
|
NugetPackageName: Jellyfin.Naming
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: Emby.Naming.dll
|
2019-02-18 20:17:57 -05:00
|
|
|
Controller:
|
|
|
|
NugetPackageName: Jellyfin.Controller
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: MediaBrowser.Controller.dll
|
2019-02-18 20:17:57 -05:00
|
|
|
Model:
|
|
|
|
NugetPackageName: Jellyfin.Model
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: MediaBrowser.Model.dll
|
2019-02-18 20:17:57 -05:00
|
|
|
Common:
|
|
|
|
NugetPackageName: Jellyfin.Common
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: MediaBrowser.Common.dll
|
2020-06-07 01:37:08 -04:00
|
|
|
LinuxImage: 'ubuntu-latest'
|
2020-06-19 16:25:11 -04:00
|
|
|
|
2020-09-02 16:42:00 -04:00
|
|
|
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
|
2020-06-19 16:25:11 -04:00
|
|
|
- template: azure-pipelines-package.yml
|