azure-pipelines.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: $(Date:yyyyMMdd)$(Rev:.r)
  2. variables:
  3. - name: TestProjects
  4. value: 'tests/**/*Tests.csproj'
  5. - name: RestoreBuildProjects
  6. value: 'Jellyfin.Server/Jellyfin.Server.csproj'
  7. - name: DotNetSdkVersion
  8. value: 3.1.100
  9. pr:
  10. autoCancel: true
  11. trigger:
  12. batch: true
  13. jobs:
  14. - ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
  15. - template: azure-pipelines-main.yml
  16. parameters:
  17. LinuxImage: 'ubuntu-latest'
  18. RestoreBuildProjects: $(RestoreBuildProjects)
  19. - ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
  20. - template: azure-pipelines-test.yml
  21. parameters:
  22. ImageNames:
  23. Linux: 'ubuntu-latest'
  24. Windows: 'windows-latest'
  25. macOS: 'macos-latest'
  26. - ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
  27. - template: azure-pipelines-abi.yml
  28. parameters:
  29. Packages:
  30. Naming:
  31. NugetPackageName: Jellyfin.Naming
  32. AssemblyFileName: Emby.Naming.dll
  33. Controller:
  34. NugetPackageName: Jellyfin.Controller
  35. AssemblyFileName: MediaBrowser.Controller.dll
  36. Model:
  37. NugetPackageName: Jellyfin.Model
  38. AssemblyFileName: MediaBrowser.Model.dll
  39. Common:
  40. NugetPackageName: Jellyfin.Common
  41. AssemblyFileName: MediaBrowser.Common.dll
  42. LinuxImage: 'ubuntu-latest'
  43. - ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
  44. - template: azure-pipelines-package.yml