.drone.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. kind: pipeline
  2. name: build
  3. steps:
  4. - name: submodules
  5. image: docker:git
  6. commands:
  7. - git submodule update --init --recursive
  8. - name: build
  9. image: microsoft/dotnet:2-sdk
  10. commands:
  11. - dotnet publish "Jellyfin.Server" --configuration Release --output "../ci/ci-release"
  12. - name: clone-dotnet-compat
  13. image: docker:git
  14. commands:
  15. - git clone --depth 1 https://github.com/EraYaN/dotnet-compatibility ci/dotnet-compatibility
  16. - name: build-dotnet-compat
  17. image: microsoft/dotnet:2-sdk
  18. commands:
  19. - dotnet publish "ci/dotnet-compatibility/CompatibilityCheckerCoreCLI" --configuration Release --output "../../ci-tools"
  20. - name: download-last-nuget-release-common
  21. image: plugins/download
  22. settings:
  23. source: https://www.nuget.org/api/v2/package/Jellyfin.Common
  24. destination: ci/Jellyfin.Common.nupkg
  25. - name: download-last-nuget-release-model
  26. image: plugins/download
  27. settings:
  28. source: https://www.nuget.org/api/v2/package/Jellyfin.Model
  29. destination: ci/Jellyfin.Model.nupkg
  30. - name: download-last-nuget-release-controller
  31. image: plugins/download
  32. settings:
  33. source: https://www.nuget.org/api/v2/package/Jellyfin.Controller
  34. destination: ci/Jellyfin.Controller.nupkg
  35. - name: download-last-nuget-release-naming
  36. image: plugins/download
  37. settings:
  38. source: https://www.nuget.org/api/v2/package/Jellyfin.Naming
  39. destination: ci/Jellyfin.Naming.nupkg
  40. - name: extract-downloaded-nuget-packages
  41. image: garthk/unzip
  42. commands:
  43. - unzip -j ci/Jellyfin.Common.nupkg "*.dll" -d ci/nuget-packages
  44. - unzip -j ci/Jellyfin.Model.nupkg "*.dll" -d ci/nuget-packages
  45. - unzip -j ci/Jellyfin.Controller.nupkg "*.dll" -d ci/nuget-packages
  46. - unzip -j ci/Jellyfin.Naming.nupkg "*.dll" -d ci/nuget-packages
  47. - name: run-dotnet-compat-common
  48. image: microsoft/dotnet:2-runtime
  49. err_ignore: true
  50. commands:
  51. - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Common.dll ci/ci-release/Jellyfin.Common.dll
  52. - name: run-dotnet-compat-model
  53. image: microsoft/dotnet:2-runtime
  54. err_ignore: true
  55. commands:
  56. - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Model.dll ci/ci-release/Jellyfin.Model.dll
  57. - name: run-dotnet-compat-controller
  58. image: microsoft/dotnet:2-runtime
  59. err_ignore: true
  60. commands:
  61. - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Controller.dll ci/ci-release/Jellyfin.Controller.dll
  62. - name: run-dotnet-compat-naming
  63. image: microsoft/dotnet:2-runtime
  64. err_ignore: true
  65. commands:
  66. - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Naming.dll ci/ci-release/Jellyfin.Naming.dll