2018-12-12 22:50:59 -05:00
|
|
|
kind: pipeline
|
2019-01-05 16:38:53 -05:00
|
|
|
name: build
|
2018-12-12 22:50:59 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
2018-12-13 18:40:01 -05:00
|
|
|
- git submodule update --init --recursive
|
2019-02-10 14:57:31 -05:00
|
|
|
|
2019-01-05 16:38:53 -05:00
|
|
|
- name: build
|
|
|
|
image: microsoft/dotnet:2-sdk
|
2018-12-12 22:50:59 -05:00
|
|
|
commands:
|
2019-01-13 10:32:54 -05:00
|
|
|
- dotnet publish --configuration release --output /release Jellyfin.Server
|
2019-02-10 14:57:31 -05:00
|
|
|
|
|
|
|
- name: clone-dotnet-compat
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git clone --depth 1 https://github.com/EraYaN/dotnet-compatibility
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: build-dotnet-compat
|
|
|
|
image: microsoft/dotnet:2-sdk
|
|
|
|
commands:
|
|
|
|
- dotnet publish --configuration release --output /tools dotnet-compatibility/CompatibilityCheckerCoreCLI
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: download-last-nuget-release-common
|
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Common
|
|
|
|
destination: Jellyfin.Common.nupkg
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: download-last-nuget-release-model
|
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Model
|
|
|
|
destination: Jellyfin.Model.nupkg
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: download-last-nuget-release-controller
|
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Controller
|
|
|
|
destination: Jellyfin.Controller.nupkg
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: download-last-nuget-release-naming
|
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Naming
|
|
|
|
destination: Jellyfin.Naming.nupkg
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: extract-downloaded-nuget-packages
|
|
|
|
image: garthk/unzip
|
|
|
|
commands:
|
|
|
|
- unzip -j Jellyfin.Common.nupkg "*.dll" -d /current-release
|
|
|
|
- unzip -j Jellyfin.Model.nupkg "*.dll" -d /current-release
|
|
|
|
- unzip -j Jellyfin.Controller.nupkg "*.dll" -d /current-release
|
|
|
|
- unzip -j Jellyfin.Naming.nupkg "*.dll" -d /current-release
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: run-dotnet-compat-common
|
|
|
|
image: microsoft/dotnet:2-runtime
|
|
|
|
commands:
|
|
|
|
- dotnet /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Common.dll /release/Jellyfin.Common.dll
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: run-dotnet-compat-model
|
|
|
|
image: microsoft/dotnet:2-runtime
|
|
|
|
commands:
|
|
|
|
- dotnet /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Model.dll /release/Jellyfin.Model.dll
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: run-dotnet-compat-controller
|
|
|
|
image: microsoft/dotnet:2-runtime
|
|
|
|
commands:
|
|
|
|
- dotnet /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Controller.dll /release/Jellyfin.Controller.dll
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: run-dotnet-compat-naming
|
|
|
|
image: microsoft/dotnet:2-runtime
|
|
|
|
commands:
|
|
|
|
- dotnet /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Naming.dll /release/Jellyfin.Naming.dll
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|