azure-pipelines.yml 2.0 KB

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