aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-02-10 20:57:31 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-02-10 20:57:31 +0100
commit30ec203effac33896e25f67d9e30ea4ac649cc5c (patch)
treea68424f056bb6aff7e7e1e49c09d7c346b1dd488
parenteb4b7051676b7493a57a99a821d5dd38bd9d4919 (diff)
Added first test for dotnet-compat ABI testing to drone.
-rw-r--r--.drone.yml96
-rw-r--r--.editorconfig4
2 files changed, 100 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 98db4884b..5493e427c 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -6,7 +6,103 @@ steps:
image: docker:git
commands:
- git submodule update --init --recursive
+
- name: build
image: microsoft/dotnet:2-sdk
commands:
- dotnet publish --configuration release --output /release Jellyfin.Server
+
+- 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
diff --git a/.editorconfig b/.editorconfig
index b2891188d..5034f364e 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -15,6 +15,10 @@ insert_final_newline = true
end_of_line = lf
max_line_length = null
+# YAML indentation
+[*.{yml,yaml}]
+indent_size = 2
+
# XML indentation
[*.{csproj,xml}]
indent_size = 2