aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-02-12 16:21:46 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-02-12 16:21:46 +0100
commit8055b70ab13fb0b06bc8bc81adc6f8bc1ce38b6c (patch)
tree0d23d25809666071ec5248b7643f58710d5140d0
parent29d678347187ab85a597c88ea72b2ce752094b37 (diff)
Fixed full pipeline, runs correctly now with `drone exec`
-rw-r--r--.dockerignore1
-rw-r--r--.drone.yml71
-rw-r--r--.gitignore2
3 files changed, 22 insertions, 52 deletions
diff --git a/.dockerignore b/.dockerignore
index 45e543525..ffd6de2d6 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -8,3 +8,4 @@ README.md
deployment/*/dist
deployment/*/pkg-dist
deployment/collect-dist/
+ci/
diff --git a/.drone.yml b/.drone.yml
index 95fe94e70..f1212d3f9 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -10,103 +10,70 @@ steps:
- name: build
image: microsoft/dotnet:2-sdk
commands:
- - dotnet publish --configuration release --output /release Jellyfin.Server
+ - dotnet publish "Jellyfin.Server" --configuration Release --output "../ci/ci-release"
- name: clone-dotnet-compat
image: docker:git
commands:
- - git clone --depth 1 https://github.com/EraYaN/dotnet-compatibility
- when:
- event:
- - pull_request
+ - git clone --depth 1 https://github.com/EraYaN/dotnet-compatibility ci/dotnet-compatibility
- name: build-dotnet-compat
image: microsoft/dotnet:2-sdk
commands:
- - dotnet publish --runtime debian.9-x64 --configuration release --output /tools dotnet-compatibility/CompatibilityCheckerCoreCLI
- when:
- event:
- - pull_request
+ - dotnet publish "ci/dotnet-compatibility/CompatibilityCheckerCoreCLI" --configuration Release --output "../../ci-tools"
- 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
+ destination: ci/Jellyfin.Common.nupkg
- 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
+ destination: ci/Jellyfin.Model.nupkg
- 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
+ destination: ci/Jellyfin.Controller.nupkg
- 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
+ destination: ci/Jellyfin.Naming.nupkg
- 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
+ - unzip -j ci/Jellyfin.Common.nupkg "*.dll" -d ci/nuget-packages
+ - unzip -j ci/Jellyfin.Model.nupkg "*.dll" -d ci/nuget-packages
+ - unzip -j ci/Jellyfin.Controller.nupkg "*.dll" -d ci/nuget-packages
+ - unzip -j ci/Jellyfin.Naming.nupkg "*.dll" -d ci/nuget-packages
- name: run-dotnet-compat-common
- image: debian:stretch
+ image: microsoft/dotnet:2-runtime
err_ignore: true
commands:
- - /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Common.dll /release/Jellyfin.Common.dll
- when:
- event:
- - pull_request
+ - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Common.dll ci/ci-release/Jellyfin.Common.dll
- name: run-dotnet-compat-model
- image: debian:stretch
+ image: microsoft/dotnet:2-runtime
err_ignore: true
commands:
- - /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Model.dll /release/Jellyfin.Model.dll
- when:
- event:
- - pull_request
+ - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Model.dll ci/ci-release/Jellyfin.Model.dll
- name: run-dotnet-compat-controller
- image: debian:stretch
+ image: microsoft/dotnet:2-runtime
err_ignore: true
commands:
- - /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Controller.dll /release/Jellyfin.Controller.dll
- when:
- event:
- - pull_request
+ - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Controller.dll ci/ci-release/Jellyfin.Controller.dll
- name: run-dotnet-compat-naming
- image: debian:stretch
+ image: microsoft/dotnet:2-runtime
err_ignore: true
commands:
- - /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Naming.dll /release/Jellyfin.Naming.dll
- when:
- event:
- - pull_request
+ - dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Naming.dll ci/ci-release/Jellyfin.Naming.dll
diff --git a/.gitignore b/.gitignore
index aef666272..65e47747e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -264,3 +264,5 @@ deployment/**/pkg-dist-tmp/
deployment/collect-dist/
jellyfin_version.ini
+
+ci/