|
|
@ -15,12 +15,12 @@ variables:
|
|
|
|
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
|
|
|
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
|
|
|
sentryOrg: 'servarr'
|
|
|
|
sentryOrg: 'servarr'
|
|
|
|
sentryUrl: 'https://sentry.servarr.com'
|
|
|
|
sentryUrl: 'https://sentry.servarr.com'
|
|
|
|
dotnetVersion: '6.0.421'
|
|
|
|
dotnetVersion: '8.0.201'
|
|
|
|
nodeVersion: '20.X'
|
|
|
|
nodeVersion: '20.X'
|
|
|
|
innoVersion: '6.2.2'
|
|
|
|
innoVersion: '6.2.2'
|
|
|
|
windowsImage: 'windows-2022'
|
|
|
|
windowsImage: 'windows-2022'
|
|
|
|
linuxImage: 'ubuntu-20.04'
|
|
|
|
linuxImage: 'ubuntu-22.04'
|
|
|
|
macImage: 'macOS-11'
|
|
|
|
macImage: 'macOS-12'
|
|
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
branches:
|
|
|
@ -96,20 +96,21 @@ stages:
|
|
|
|
submodules: true
|
|
|
|
submodules: true
|
|
|
|
fetchDepth: 1
|
|
|
|
fetchDepth: 1
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- bash: |
|
|
|
|
# - bash: |
|
|
|
|
BUNDLEDVERSIONS=${AGENT_TOOLSDIRECTORY}/dotnet/sdk/${DOTNETVERSION}/Microsoft.NETCoreSdk.BundledVersions.props
|
|
|
|
# BUNDLEDVERSIONS=${AGENT_TOOLSDIRECTORY}/dotnet/sdk/${DOTNETVERSION}/Microsoft.NETCoreSdk.BundledVersions.props
|
|
|
|
echo $BUNDLEDVERSIONS
|
|
|
|
# echo $BUNDLEDVERSIONS
|
|
|
|
if grep -q freebsd-x64 $BUNDLEDVERSIONS; then
|
|
|
|
# if grep -q freebsd-x64 $BUNDLEDVERSIONS; then
|
|
|
|
echo "Extra platforms already enabled"
|
|
|
|
# echo "Extra platforms already enabled"
|
|
|
|
else
|
|
|
|
# else
|
|
|
|
echo "Enabling extra platform support"
|
|
|
|
# echo "Enabling extra platform support"
|
|
|
|
sed -i.ORI 's/osx-x64/osx-x64;freebsd-x64;linux-x86/' $BUNDLEDVERSIONS
|
|
|
|
# sed -i.ORI 's/osx-x64/osx-x64;freebsd-x64;linux-x86/' $BUNDLEDVERSIONS
|
|
|
|
fi
|
|
|
|
# fi
|
|
|
|
displayName: Enable Extra Platform Support
|
|
|
|
# displayName: Enable Extra Platform Support
|
|
|
|
- bash: ./build.sh --backend --enable-extra-platforms
|
|
|
|
# - bash: ./build.sh --backend --enable-extra-platforms
|
|
|
|
|
|
|
|
- bash: ./build.sh --backend
|
|
|
|
displayName: Build Radarr Backend
|
|
|
|
displayName: Build Radarr Backend
|
|
|
|
- bash: |
|
|
|
|
- bash: |
|
|
|
|
find ${OUTPUTFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \;
|
|
|
|
find ${OUTPUTFOLDER} -type f ! -path "*/publish/*" -exec rm -rf {} \;
|
|
|
@ -122,27 +123,27 @@ stages:
|
|
|
|
artifact: '$(osName)Backend'
|
|
|
|
artifact: '$(osName)Backend'
|
|
|
|
displayName: Publish Backend
|
|
|
|
displayName: Publish Backend
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
- publish: '$(testsFolder)/net6.0/win-x64/publish'
|
|
|
|
- publish: '$(testsFolder)/net8.0/win-x64/publish'
|
|
|
|
artifact: win-x64-tests
|
|
|
|
artifact: win-x64-tests
|
|
|
|
displayName: Publish win-x64 Test Package
|
|
|
|
displayName: Publish win-x64 Test Package
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-x64/publish'
|
|
|
|
- publish: '$(testsFolder)/net8.0/linux-x64/publish'
|
|
|
|
artifact: linux-x64-tests
|
|
|
|
artifact: linux-x64-tests
|
|
|
|
displayName: Publish linux-x64 Test Package
|
|
|
|
displayName: Publish linux-x64 Test Package
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-x86/publish'
|
|
|
|
# - publish: '$(testsFolder)/net8.0/linux-x86/publish'
|
|
|
|
artifact: linux-x86-tests
|
|
|
|
# artifact: linux-x86-tests
|
|
|
|
displayName: Publish linux-x86 Test Package
|
|
|
|
# displayName: Publish linux-x86 Test Package
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
# condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
- publish: '$(testsFolder)/net6.0/linux-musl-x64/publish'
|
|
|
|
- publish: '$(testsFolder)/net8.0/linux-musl-x64/publish'
|
|
|
|
artifact: linux-musl-x64-tests
|
|
|
|
artifact: linux-musl-x64-tests
|
|
|
|
displayName: Publish linux-musl-x64 Test Package
|
|
|
|
displayName: Publish linux-musl-x64 Test Package
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
- publish: '$(testsFolder)/net6.0/freebsd-x64/publish'
|
|
|
|
# - publish: '$(testsFolder)/net8.0/freebsd-x64/publish'
|
|
|
|
artifact: freebsd-x64-tests
|
|
|
|
# artifact: freebsd-x64-tests
|
|
|
|
displayName: Publish freebsd-x64 Test Package
|
|
|
|
# displayName: Publish freebsd-x64 Test Package
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
# condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
- publish: '$(testsFolder)/net6.0/osx-x64/publish'
|
|
|
|
- publish: '$(testsFolder)/net8.0/osx-x64/publish'
|
|
|
|
artifact: osx-x64-tests
|
|
|
|
artifact: osx-x64-tests
|
|
|
|
displayName: Publish osx-x64 Test Package
|
|
|
|
displayName: Publish osx-x64 Test Package
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
@ -189,7 +190,7 @@ stages:
|
|
|
|
artifact: '$(osName)Frontend'
|
|
|
|
artifact: '$(osName)Frontend'
|
|
|
|
displayName: Publish Frontend
|
|
|
|
displayName: Publish Frontend
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
condition: and(succeeded(), eq(variables['osName'], 'Windows'))
|
|
|
|
|
|
|
|
|
|
|
|
- stage: Installer
|
|
|
|
- stage: Installer
|
|
|
|
dependsOn:
|
|
|
|
dependsOn:
|
|
|
|
- Build_Backend
|
|
|
|
- Build_Backend
|
|
|
@ -247,7 +248,8 @@ stages:
|
|
|
|
artifactName: WindowsFrontend
|
|
|
|
artifactName: WindowsFrontend
|
|
|
|
targetPath: _output
|
|
|
|
targetPath: _output
|
|
|
|
displayName: Fetch Frontend
|
|
|
|
displayName: Fetch Frontend
|
|
|
|
- bash: ./build.sh --packages --enable-extra-platforms
|
|
|
|
# - bash: ./build.sh --packages --enable-extra-platforms
|
|
|
|
|
|
|
|
- bash: ./build.sh --packages
|
|
|
|
displayName: Create Packages
|
|
|
|
displayName: Create Packages
|
|
|
|
- bash: |
|
|
|
|
- bash: |
|
|
|
|
find . -name "ffprobe" -exec chmod a+x {} \;
|
|
|
|
find . -name "ffprobe" -exec chmod a+x {} \;
|
|
|
@ -260,21 +262,21 @@ stages:
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).windows-core-x64.zip'
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).windows-core-x64.zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create win-x86 zip
|
|
|
|
displayName: Create win-x86 zip
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).windows-core-x86.zip'
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).windows-core-x86.zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x86/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/win-x86/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create osx-x64 app
|
|
|
|
displayName: Create osx-x64 app
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).osx-app-core-x64.zip'
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).osx-app-core-x64.zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-x64-app/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-x64-app/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create osx-x64 tar
|
|
|
|
displayName: Create osx-x64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -282,14 +284,14 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-x64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-x64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create osx-arm64 app
|
|
|
|
displayName: Create osx-arm64 app
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).osx-app-core-arm64.zip'
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/Radarr.$(buildName).osx-app-core-arm64.zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
archiveType: 'zip'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-arm64-app/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-arm64-app/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create osx-arm64 tar
|
|
|
|
displayName: Create osx-arm64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -297,7 +299,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-arm64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/osx-arm64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-x64 tar
|
|
|
|
displayName: Create linux-x64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -305,7 +307,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-x64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-x64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-musl-x64 tar
|
|
|
|
displayName: Create linux-musl-x64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -313,7 +315,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-x64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-x64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-x86 tar
|
|
|
|
displayName: Create linux-x86 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -321,7 +323,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-x86/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-x86/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-arm tar
|
|
|
|
displayName: Create linux-arm tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -329,7 +331,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-musl-arm tar
|
|
|
|
displayName: Create linux-musl-arm tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -337,7 +339,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-arm/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-arm/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-arm64 tar
|
|
|
|
displayName: Create linux-arm64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -345,7 +347,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-arm64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create linux-musl-arm64 tar
|
|
|
|
displayName: Create linux-musl-arm64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -353,7 +355,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-arm64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/linux-musl-arm64/net8.0
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
displayName: Create freebsd-x64 tar
|
|
|
|
displayName: Create freebsd-x64 tar
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -361,7 +363,7 @@ stages:
|
|
|
|
archiveType: 'tar'
|
|
|
|
archiveType: 'tar'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
tarCompression: 'gz'
|
|
|
|
includeRootFolder: false
|
|
|
|
includeRootFolder: false
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/freebsd-x64/net6.0
|
|
|
|
rootFolderOrFile: $(artifactsFolder)/freebsd-x64/net8.0
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
artifact: 'Packages'
|
|
|
|
artifact: 'Packages'
|
|
|
|
displayName: Publish Packages
|
|
|
|
displayName: Publish Packages
|
|
|
@ -392,7 +394,7 @@ stages:
|
|
|
|
SENTRY_AUTH_TOKEN: $(sentryAuthTokenServarr)
|
|
|
|
SENTRY_AUTH_TOKEN: $(sentryAuthTokenServarr)
|
|
|
|
SENTRY_ORG: $(sentryOrg)
|
|
|
|
SENTRY_ORG: $(sentryOrg)
|
|
|
|
SENTRY_URL: $(sentryUrl)
|
|
|
|
SENTRY_URL: $(sentryUrl)
|
|
|
|
|
|
|
|
|
|
|
|
- stage: Unit_Test
|
|
|
|
- stage: Unit_Test
|
|
|
|
displayName: Unit Tests
|
|
|
|
displayName: Unit Tests
|
|
|
|
dependsOn: Build_Backend
|
|
|
|
dependsOn: Build_Backend
|
|
|
@ -448,7 +450,7 @@ stages:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
condition: ne(variables['poolName'], 'FreeBSD')
|
|
|
|
condition: ne(variables['poolName'], 'FreeBSD')
|
|
|
@ -499,11 +501,11 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
pool:
|
|
|
|
pool:
|
|
|
|
vmImage: ${{ variables.linuxImage }}
|
|
|
|
vmImage: ${{ variables.linuxImage }}
|
|
|
|
|
|
|
|
|
|
|
|
container: $[ variables['containerImage'] ]
|
|
|
|
container: $[ variables['containerImage'] ]
|
|
|
|
|
|
|
|
|
|
|
|
timeoutInMinutes: 10
|
|
|
|
timeoutInMinutes: 10
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .NET'
|
|
|
|
displayName: 'Install .NET'
|
|
|
@ -540,7 +542,7 @@ stages:
|
|
|
|
testResultsFiles: '**/TestResult.xml'
|
|
|
|
testResultsFiles: '**/TestResult.xml'
|
|
|
|
testRunTitle: '$(testName) Unit Tests'
|
|
|
|
testRunTitle: '$(testName) Unit Tests'
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
|
|
|
|
|
|
|
|
- job: Unit_LinuxCore_Postgres14
|
|
|
|
- job: Unit_LinuxCore_Postgres14
|
|
|
|
displayName: Unit Native LinuxCore with Postgres14 Database
|
|
|
|
displayName: Unit Native LinuxCore with Postgres14 Database
|
|
|
|
dependsOn: Prepare
|
|
|
|
dependsOn: Prepare
|
|
|
@ -557,10 +559,10 @@ stages:
|
|
|
|
vmImage: ${{ variables.linuxImage }}
|
|
|
|
vmImage: ${{ variables.linuxImage }}
|
|
|
|
|
|
|
|
|
|
|
|
timeoutInMinutes: 10
|
|
|
|
timeoutInMinutes: 10
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
@ -608,15 +610,15 @@ stages:
|
|
|
|
Radarr__Postgres__Port: '5432'
|
|
|
|
Radarr__Postgres__Port: '5432'
|
|
|
|
Radarr__Postgres__User: 'radarr'
|
|
|
|
Radarr__Postgres__User: 'radarr'
|
|
|
|
Radarr__Postgres__Password: 'radarr'
|
|
|
|
Radarr__Postgres__Password: 'radarr'
|
|
|
|
|
|
|
|
|
|
|
|
pool:
|
|
|
|
pool:
|
|
|
|
vmImage: ${{ variables.linuxImage }}
|
|
|
|
vmImage: ${{ variables.linuxImage }}
|
|
|
|
|
|
|
|
|
|
|
|
timeoutInMinutes: 10
|
|
|
|
timeoutInMinutes: 10
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
@ -695,10 +697,10 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
pool:
|
|
|
|
pool:
|
|
|
|
vmImage: $(imageName)
|
|
|
|
vmImage: $(imageName)
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
@ -752,7 +754,7 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
@ -798,7 +800,6 @@ stages:
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
displayName: Publish Test Results
|
|
|
|
displayName: Publish Test Results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- job: Integration_LinuxCore_Postgres15
|
|
|
|
- job: Integration_LinuxCore_Postgres15
|
|
|
|
displayName: Integration Native LinuxCore with Postgres Database
|
|
|
|
displayName: Integration Native LinuxCore with Postgres Database
|
|
|
|
dependsOn: Prepare
|
|
|
|
dependsOn: Prepare
|
|
|
@ -815,7 +816,7 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
@ -929,7 +930,7 @@ stages:
|
|
|
|
container: $[ variables['containerImage'] ]
|
|
|
|
container: $[ variables['containerImage'] ]
|
|
|
|
|
|
|
|
|
|
|
|
timeoutInMinutes: 15
|
|
|
|
timeoutInMinutes: 15
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .NET'
|
|
|
|
displayName: 'Install .NET'
|
|
|
@ -979,7 +980,7 @@ stages:
|
|
|
|
- stage: Automation
|
|
|
|
- stage: Automation
|
|
|
|
displayName: Automation
|
|
|
|
displayName: Automation
|
|
|
|
dependsOn: Packages
|
|
|
|
dependsOn: Packages
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
- job: Automation
|
|
|
|
- job: Automation
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
@ -1005,10 +1006,10 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
pool:
|
|
|
|
pool:
|
|
|
|
vmImage: $(imageName)
|
|
|
|
vmImage: $(imageName)
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: none
|
|
|
|
- checkout: none
|
|
|
@ -1129,7 +1130,7 @@ stages:
|
|
|
|
cliProjectVersion: '$(radarrVersion)'
|
|
|
|
cliProjectVersion: '$(radarrVersion)'
|
|
|
|
cliSources: './frontend'
|
|
|
|
cliSources: './frontend'
|
|
|
|
- task: SonarCloudAnalyze@1
|
|
|
|
- task: SonarCloudAnalyze@1
|
|
|
|
|
|
|
|
|
|
|
|
- job: Api_Docs
|
|
|
|
- job: Api_Docs
|
|
|
|
displayName: API Docs
|
|
|
|
displayName: API Docs
|
|
|
|
dependsOn: Prepare
|
|
|
|
dependsOn: Prepare
|
|
|
@ -1145,7 +1146,7 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: self
|
|
|
|
- checkout: self
|
|
|
@ -1198,7 +1199,7 @@ stages:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Install .net core'
|
|
|
|
displayName: 'Install .NET core'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
version: $(dotnetVersion)
|
|
|
|
- checkout: self # Need history for Sonar analysis
|
|
|
|
- checkout: self # Need history for Sonar analysis
|
|
|
@ -1220,13 +1221,13 @@ stages:
|
|
|
|
sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml
|
|
|
|
sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml
|
|
|
|
sonar.cs.nunit.reportsPaths=$(Build.SourcesDirectory)/TestResult.xml
|
|
|
|
sonar.cs.nunit.reportsPaths=$(Build.SourcesDirectory)/TestResult.xml
|
|
|
|
- bash: |
|
|
|
|
- bash: |
|
|
|
|
./build.sh --backend -f net6.0 -r win-x64
|
|
|
|
./build.sh --backend -f net8.0 -r win-x64
|
|
|
|
TEST_DIR=_tests/net6.0/win-x64/publish/ ./test.sh Windows Unit Coverage
|
|
|
|
TEST_DIR=_tests/net8.0/win-x64/publish/ ./test.sh Windows Unit Coverage
|
|
|
|
displayName: Coverage Unit Tests
|
|
|
|
displayName: Coverage Unit Tests
|
|
|
|
- task: SonarCloudAnalyze@1
|
|
|
|
- task: SonarCloudAnalyze@1
|
|
|
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
|
|
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
|
|
|
displayName: Publish SonarCloud Results
|
|
|
|
displayName: Publish SonarCloud Results
|
|
|
|
- task: reportgenerator@4
|
|
|
|
- task: reportgenerator@5
|
|
|
|
displayName: Generate Coverage Report
|
|
|
|
displayName: Generate Coverage Report
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
reports: '$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml'
|
|
|
|
reports: '$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml'
|
|
|
@ -1269,4 +1270,3 @@ stages:
|
|
|
|
DISCORDCHANNELID: $(discordChannelId)
|
|
|
|
DISCORDCHANNELID: $(discordChannelId)
|
|
|
|
DISCORDWEBHOOKKEY: $(discordWebhookKey)
|
|
|
|
DISCORDWEBHOOKKEY: $(discordWebhookKey)
|
|
|
|
DISCORDTHREADID: $(discordThreadId)
|
|
|
|
DISCORDTHREADID: $(discordThreadId)
|
|
|
|
|
|
|
|
|
|
|
|