|
|
|
@ -13,7 +13,7 @@ variables:
|
|
|
|
|
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
|
|
|
|
sentryOrg: 'servarr'
|
|
|
|
|
sentryUrl: 'https://sentry.servarr.com'
|
|
|
|
|
dotnetVersion: '5.0.401'
|
|
|
|
|
dotnetVersion: '6.0.100'
|
|
|
|
|
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
@ -111,23 +111,23 @@ stages:
|
|
|
|
|
artifact: '$(osName)Backend'
|
|
|
|
|
displayName: Publish Backend
|
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/win-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/win-x64/publish'
|
|
|
|
|
artifact: WindowsCoreTests
|
|
|
|
|
displayName: Publish Windows Test Package
|
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/linux-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-x64/publish'
|
|
|
|
|
artifact: LinuxCoreTests
|
|
|
|
|
displayName: Publish Linux Test Package
|
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/linux-musl-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-musl-x64/publish'
|
|
|
|
|
artifact: LinuxMuslCoreTests
|
|
|
|
|
displayName: Publish Linux Musl Test Package
|
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/freebsd-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/freebsd-x64/publish'
|
|
|
|
|
artifact: FreebsdCoreTests
|
|
|
|
|
displayName: Publish FreeBSD Test Package
|
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/osx-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/osx-x64/publish'
|
|
|
|
|
artifact: MacCoreTests
|
|
|
|
|
displayName: Publish MacOS Test Package
|
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
@ -203,12 +203,12 @@ stages:
|
|
|
|
|
- bash: ./build.sh --packages
|
|
|
|
|
displayName: Create Packages
|
|
|
|
|
- bash: |
|
|
|
|
|
setup/inno/ISCC.exe setup/radarr.iss //DFramework=net5.0 //DRuntime=win-x86
|
|
|
|
|
cp setup/output/Radarr.*windows.net5.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Radarr.${BUILDNAME}.windows-core-x86-installer.exe
|
|
|
|
|
setup/inno/ISCC.exe setup/radarr.iss //DFramework=net6.0 //DRuntime=win-x86
|
|
|
|
|
cp setup/output/Radarr.*windows.net6.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Radarr.${BUILDNAME}.windows-core-x86-installer.exe
|
|
|
|
|
displayName: Create .NET Core Windows installer
|
|
|
|
|
- bash: |
|
|
|
|
|
setup/inno/ISCC.exe setup/radarr.iss //DFramework=net5.0 //DRuntime=win-x64
|
|
|
|
|
cp setup/output/Radarr.*windows.net5.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Radarr.${BUILDNAME}.windows-core-x64-installer.exe
|
|
|
|
|
setup/inno/ISCC.exe setup/radarr.iss //DFramework=net6.0 //DRuntime=win-x64
|
|
|
|
|
cp setup/output/Radarr.*windows.net6.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Radarr.${BUILDNAME}.windows-core-x64-installer.exe
|
|
|
|
|
displayName: Create .NET Core Windows installer
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
artifact: 'WindowsInstaller'
|
|
|
|
@ -251,21 +251,21 @@ stages:
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).windows-core-x64.zip'
|
|
|
|
|
archiveType: 'zip'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x64/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x64/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create Windows x86 Core zip
|
|
|
|
|
inputs:
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).windows-core-x86.zip'
|
|
|
|
|
archiveType: 'zip'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x86/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x86/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create MacOS Core app
|
|
|
|
|
inputs:
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).osx-app-core-x64.zip'
|
|
|
|
|
archiveType: 'zip'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/macos-app/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/macos-app/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create MacOS Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -273,7 +273,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/macos/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/macos/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create Linux Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -281,7 +281,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-x64/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-x64/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create Linux Musl Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -289,7 +289,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-x64/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-x64/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create ARM32 Linux Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -297,7 +297,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create ARM64 Linux Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -305,7 +305,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm64/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm64/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create ARM64 Linux Musl Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -313,7 +313,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-arm64/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-arm64/net6.0
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
displayName: Create FreeBSD Core Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -321,7 +321,7 @@ stages:
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
tarCompression: 'gz'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/freebsd-x64/net5.0
|
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/freebsd-x64/net6.0
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
artifact: 'Packages'
|
|
|
|
|
displayName: Publish Packages
|
|
|
|
@ -866,8 +866,8 @@ stages:
|
|
|
|
|
sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml
|
|
|
|
|
sonar.cs.nunit.reportsPaths=$(Build.SourcesDirectory)/TestResult.xml
|
|
|
|
|
- bash: |
|
|
|
|
|
./build.sh --backend -f net5.0 -r win-x64
|
|
|
|
|
TEST_DIR=_tests/net5.0/win-x64/publish/ ./test.sh Windows Unit Coverage
|
|
|
|
|
./build.sh --backend -f net6.0 -r win-x64
|
|
|
|
|
TEST_DIR=_tests/net6.0/win-x64/publish/ ./test.sh Windows Unit Coverage
|
|
|
|
|
displayName: Coverage Unit Tests
|
|
|
|
|
- task: SonarCloudAnalyze@1
|
|
|
|
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
|
|
|
|