|
|
|
@ -13,7 +13,7 @@ variables:
|
|
|
|
|
buildName: '$(Build.SourceBranchName).$(readarrVersion)'
|
|
|
|
|
sentryOrg: 'servarr'
|
|
|
|
|
sentryUrl: 'https://sentry.servarr.com'
|
|
|
|
|
dotnetVersion: '5.0.302'
|
|
|
|
|
dotnetVersion: '6.0.100'
|
|
|
|
|
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
|
|
|
|
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
|
|
|
|
|
|
|
|
|
@ -81,7 +81,7 @@ stages:
|
|
|
|
|
displayName: Build Readarr Backend
|
|
|
|
|
env:
|
|
|
|
|
NUGET_PACKAGES: $(nugetCacheFolder)
|
|
|
|
|
- powershell: Get-ChildItem _output\net5.0*,_output\*.Update\* -Recurse | Where { $_.Fullname -notlike "*\publish\*" -and $_.attributes -notlike "*directory*" } | Remove-Item
|
|
|
|
|
- powershell: Get-ChildItem _output\net6.0*,_output\*.Update\* -Recurse | Where { $_.Fullname -notlike "*\publish\*" -and $_.attributes -notlike "*directory*" } | Remove-Item
|
|
|
|
|
displayName: Clean up intermediate output
|
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
|
inputs:
|
|
|
|
@ -91,19 +91,19 @@ stages:
|
|
|
|
|
parallel: true
|
|
|
|
|
parallelCount: 100
|
|
|
|
|
displayName: Publish Backend
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/win-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/win-x64/publish'
|
|
|
|
|
artifact: WindowsCoreTests
|
|
|
|
|
displayName: Publish Windows Test Package
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/linux-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-x64/publish'
|
|
|
|
|
artifact: LinuxCoreTests
|
|
|
|
|
displayName: Publish Linux Test Package
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/linux-musl-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-musl-x64/publish'
|
|
|
|
|
artifact: LinuxMuslCoreTests
|
|
|
|
|
displayName: Publish Linux Musl Test Package
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/freebsd-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/freebsd-x64/publish'
|
|
|
|
|
artifact: FreebsdCoreTests
|
|
|
|
|
displayName: Publish FreeBSD Test Package
|
|
|
|
|
- publish: '$(testsFolder)/net5.0/osx-x64/publish'
|
|
|
|
|
- publish: '$(testsFolder)/net6.0/osx-x64/publish'
|
|
|
|
|
artifact: MacCoreTests
|
|
|
|
|
displayName: Publish MacOS Test Package
|
|
|
|
|
|
|
|
|
@ -228,12 +228,12 @@ stages:
|
|
|
|
|
- bash: ./build.sh --packages
|
|
|
|
|
displayName: Create Packages
|
|
|
|
|
- bash: |
|
|
|
|
|
setup/inno/ISCC.exe setup/readarr.iss //DFramework=net5.0 //DRuntime=win-x86
|
|
|
|
|
cp setup/output/Readarr.*windows.net5.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Readarr.${BUILDNAME}.windows-core-x86-installer.exe
|
|
|
|
|
setup/inno/ISCC.exe setup/readarr.iss //DFramework=net6.0 //DRuntime=win-x86
|
|
|
|
|
cp setup/output/Readarr.*windows.net6.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Readarr.${BUILDNAME}.windows-core-x86-installer.exe
|
|
|
|
|
displayName: Create .NET Core Windows installer
|
|
|
|
|
- bash: |
|
|
|
|
|
setup/inno/ISCC.exe setup/readarr.iss //DFramework=net5.0 //DRuntime=win-x64
|
|
|
|
|
cp setup/output/Readarr.*windows.net5.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Readarr.${BUILDNAME}.windows-core-x64-installer.exe
|
|
|
|
|
setup/inno/ISCC.exe setup/readarr.iss //DFramework=net6.0 //DRuntime=win-x64
|
|
|
|
|
cp setup/output/Readarr.*windows.net6.0.exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Readarr.${BUILDNAME}.windows-core-x64-installer.exe
|
|
|
|
|
displayName: Create .NET Core Windows installer
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
artifact: 'WindowsInstaller'
|
|
|
|
@ -276,21 +276,21 @@ stages:
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Readarr.$(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)/Readarr.$(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)/Readarr.$(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:
|
|
|
|
@ -298,7 +298,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:
|
|
|
|
@ -306,7 +306,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:
|
|
|
|
@ -314,7 +314,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:
|
|
|
|
@ -322,7 +322,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 Linux Core tar
|
|
|
|
|
inputs:
|
|
|
|
@ -330,7 +330,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:
|
|
|
|
@ -338,7 +338,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:
|
|
|
|
@ -346,7 +346,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
|
|
|
|
@ -842,8 +842,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 linux-x64
|
|
|
|
|
TEST_DIR=_tests/net5.0/linux-x64/publish/ ./test.sh Linux Unit Coverage
|
|
|
|
|
./build.sh --backend -f net6.0 -r linux-x64
|
|
|
|
|
TEST_DIR=_tests/net6.0/linux-x64/publish/ ./test.sh Linux Unit Coverage
|
|
|
|
|
displayName: Coverage Unit Tests
|
|
|
|
|
env:
|
|
|
|
|
NUGET_PACKAGES: $(nugetCacheFolder)
|
|
|
|
|