jellyfin/.ci/azure-pipelines.yml

65 lines
2 KiB
YAML
Raw Normal View History

name: $(Date:yyyyMMdd)$(Rev:.r)
variables:
2020-04-12 19:20:37 +02:00
- name: TestProjects
2020-06-07 07:37:08 +02:00
value: 'tests/**/*Tests.csproj'
2020-04-12 19:20:37 +02:00
- name: RestoreBuildProjects
2020-06-07 07:37:08 +02:00
value: 'Jellyfin.Server/Jellyfin.Server.csproj'
pr:
autoCancel: true
trigger:
batch: true
branches:
include:
- '*'
tags:
include:
- 'v*'
2019-02-18 22:26:40 +01:00
2019-02-18 23:24:39 +01:00
jobs:
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}:
- template: azure-pipelines-main.yml
parameters:
2020-06-07 07:37:08 +02:00
LinuxImage: 'ubuntu-latest'
RestoreBuildProjects: $(RestoreBuildProjects)
- ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
- template: azure-pipelines-test.yml
parameters:
2020-01-15 11:27:38 +01:00
ImageNames:
2020-06-07 07:37:08 +02:00
Linux: 'ubuntu-latest'
Windows: 'windows-latest'
macOS: 'macos-latest'
2020-10-01 17:38:36 +02: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'
- ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
2020-06-07 07:37:08 +02:00
- template: azure-pipelines-abi.yml
parameters:
2020-01-15 11:27:38 +01:00
Packages:
2019-02-19 02:17:57 +01:00
Naming:
NugetPackageName: Jellyfin.Naming
AssemblyFileName: Emby.Naming.dll
2019-02-19 02:17:57 +01:00
Controller:
NugetPackageName: Jellyfin.Controller
AssemblyFileName: MediaBrowser.Controller.dll
2019-02-19 02:17:57 +01:00
Model:
NugetPackageName: Jellyfin.Model
AssemblyFileName: MediaBrowser.Model.dll
2019-02-19 02:17:57 +01:00
Common:
NugetPackageName: Jellyfin.Common
AssemblyFileName: MediaBrowser.Common.dll
Extensions:
NugetPackageName: Jellyfin.Extensions
AssemblyFileName: Jellyfin.Extensions.dll
2020-06-07 07:37:08 +02:00
LinuxImage: 'ubuntu-latest'
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
- template: azure-pipelines-package.yml