azure-pipelines.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. pr:
  8. autoCancel: true
  9. trigger:
  10. batch: true
  11. branches:
  12. include:
  13. - '*'
  14. tags:
  15. include:
  16. - 'v*'
  17. jobs:
  18. - ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}:
  19. - template: azure-pipelines-main.yml
  20. parameters:
  21. LinuxImage: 'ubuntu-latest'
  22. RestoreBuildProjects: $(RestoreBuildProjects)
  23. - ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
  24. - template: azure-pipelines-test.yml
  25. parameters:
  26. ImageNames:
  27. Linux: 'ubuntu-latest'
  28. Windows: 'windows-latest'
  29. macOS: 'macos-latest'
  30. - ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
  31. - template: azure-pipelines-test.yml
  32. parameters:
  33. ImageNames:
  34. Linux: 'ubuntu-latest'
  35. - ${{ if not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))) }}:
  36. - template: azure-pipelines-abi.yml
  37. parameters:
  38. Packages:
  39. Naming:
  40. NugetPackageName: Jellyfin.Naming
  41. AssemblyFileName: Emby.Naming.dll
  42. Controller:
  43. NugetPackageName: Jellyfin.Controller
  44. AssemblyFileName: MediaBrowser.Controller.dll
  45. Model:
  46. NugetPackageName: Jellyfin.Model
  47. AssemblyFileName: MediaBrowser.Model.dll
  48. Common:
  49. NugetPackageName: Jellyfin.Common
  50. AssemblyFileName: MediaBrowser.Common.dll
  51. Extensions:
  52. NugetPackageName: Jellyfin.Extensions
  53. AssemblyFileName: Jellyfin.Extensions.dll
  54. LinuxImage: 'ubuntu-latest'
  55. - ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
  56. - template: azure-pipelines-package.yml