@ -12,7 +12,7 @@ variables:
lidarrVersion : '$(majorVersion).$(minorVersion)'
buildName : '$(Build.SourceBranchName).$(lidarrVersion)'
sentryOrg : 'lidarr'
dotnetVersion : '3. 0 .100'
dotnetVersion : '3. 1 .100'
trigger:
branches:
@ -51,10 +51,9 @@ stages:
submodules : true
fetchDepth : 1
- task : UseDotNet@2
displayName : 'Install .net core 3.0 '
displayName : 'Install .net core '
inputs:
version : $(dotnetVersion)
condition : ne(variables['osName'], 'Windows')
- bash : ./build.sh --backend
displayName : Build Lidarr Backend
- bash : |
@ -67,7 +66,7 @@ stages:
artifact : '$(osName)Backend'
displayName : Publish Backend
condition : and(succeeded(), eq(variables['osName'], 'Windows'))
- publish : '$(testsFolder)/netcoreapp3. 0 /win-x64/publish'
- publish : '$(testsFolder)/netcoreapp3. 1 /win-x64/publish'
artifact : WindowsCoreTests
displayName : Publish Windows Test Package
condition : and(succeeded(), eq(variables['osName'], 'Windows'))
@ -75,11 +74,11 @@ stages:
artifact : LinuxTests
displayName : Publish Linux Test Package
condition : and(succeeded(), eq(variables['osName'], 'Windows'))
- publish : '$(testsFolder)/netcoreapp3. 0 /linux-x64/publish'
- publish : '$(testsFolder)/netcoreapp3. 1 /linux-x64/publish'
artifact : LinuxCoreTests
displayName : Publish Linux Test Package
condition : and(succeeded(), eq(variables['osName'], 'Windows'))
- publish : '$(testsFolder)/netcoreapp3. 0 /osx-x64/publish'
- publish : '$(testsFolder)/netcoreapp3. 1 /osx-x64/publish'
artifact : MacCoreTests
displayName : Publish MacOS Test Package
condition : and(succeeded(), eq(variables['osName'], 'Windows'))
@ -147,8 +146,8 @@ stages:
- bash : ./build.sh --packages
displayName : Create Packages
- bash : |
setup/inno/ISCC.exe setup/lidarr.iss //DFramework=netcoreapp3. 0
cp setup/output/Lidarr.*windows.netcoreapp3. 0 .exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Lidarr.${BUILDNAME}.windows-core-x64-installer.exe
setup/inno/ISCC.exe setup/lidarr.iss //DFramework=netcoreapp3. 1
cp setup/output/Lidarr.*windows.netcoreapp3. 1 .exe ${BUILD_ARTIFACTSTAGINGDIRECTORY}/Lidarr.${BUILDNAME}.windows-core-x64-installer.exe
displayName : Create .NET Core Windows installer
- publish : $(Build.ArtifactStagingDirectory)
artifact : 'WindowsInstaller'
@ -191,14 +190,14 @@ stages:
archiveFile : '$(Build.ArtifactStagingDirectory)/Lidarr.$(buildName).windows-core-x64.zip'
archiveType : 'zip'
includeRootFolder : false
rootFolderOrFile : $(artifactsFolder)/windows/netcoreapp3. 0
rootFolderOrFile : $(artifactsFolder)/windows/netcoreapp3. 1
- task : ArchiveFiles@2
displayName : Create MacOS Core app
inputs:
archiveFile : '$(Build.ArtifactStagingDirectory)/Lidarr.$(buildName).osx-app-core-x64.zip'
archiveType : 'zip'
includeRootFolder : false
rootFolderOrFile : $(artifactsFolder)/macos-app/netcoreapp3. 0
rootFolderOrFile : $(artifactsFolder)/macos-app/netcoreapp3. 1
- task : ArchiveFiles@2
displayName : Create MacOS Core tar
inputs:
@ -206,7 +205,7 @@ stages:
archiveType : 'tar'
tarCompression : 'gz'
includeRootFolder : false
rootFolderOrFile : $(artifactsFolder)/macos/netcoreapp3. 0
rootFolderOrFile : $(artifactsFolder)/macos/netcoreapp3. 1
- task : ArchiveFiles@2
displayName : Create Linux Mono tar
inputs:
@ -222,7 +221,7 @@ stages:
archiveType : 'tar'
tarCompression : 'gz'
includeRootFolder : false
rootFolderOrFile : $(artifactsFolder)/linux-x64/netcoreapp3. 0
rootFolderOrFile : $(artifactsFolder)/linux-x64/netcoreapp3. 1
- task : ArchiveFiles@2
displayName : Create ARM32 Core tar
inputs:
@ -230,7 +229,7 @@ stages:
archiveType : 'tar'
tarCompression : 'gz'
includeRootFolder : false
rootFolderOrFile : $(artifactsFolder)/linux-arm/netcoreapp3. 0
rootFolderOrFile : $(artifactsFolder)/linux-arm/netcoreapp3. 1
- task : ArchiveFiles@2
displayName : Create Linux Core tar
inputs:
@ -238,7 +237,7 @@ stages:
archiveType : 'tar'
tarCompression : 'gz'
includeRootFolder : false
rootFolderOrFile : $(artifactsFolder)/linux-arm64/netcoreapp3. 0
rootFolderOrFile : $(artifactsFolder)/linux-arm64/netcoreapp3. 1
- publish : $(Build.ArtifactStagingDirectory)
artifact : 'Packages'
displayName : Publish Packages
@ -294,10 +293,9 @@ stages:
steps:
- checkout : none
- task : UseDotNet@2
displayName : 'Install .net core 3.0 '
displayName : 'Install .net core '
inputs:
version : $(dotnetVersion)
condition : ne(variables['osName'], 'Windows')
- task : DownloadPipelineArtifact@2
displayName : Download Test Artifact
inputs:
@ -371,10 +369,9 @@ stages:
- bash : mono --version
displayName : Check Mono version
- task : UseDotNet@2
displayName : 'Install .net core 3.0 '
displayName : 'Install .net core '
inputs:
version : $(dotnetVersion)
condition : ne(variables['osName'], 'Windows')
- checkout : none
- task : DownloadPipelineArtifact@2
displayName : Download Test Artifact
@ -434,10 +431,9 @@ stages:
displayName : Set Mono Version
condition : and(succeeded(), eq(variables['osName'], 'Mac'))
- task : UseDotNet@2
displayName : 'Install .net core 3.0 '
displayName : 'Install .net core '
inputs:
version : $(dotnetVersion)
condition : ne(variables['osName'], 'Windows')
- checkout : none
- task : DownloadPipelineArtifact@2
displayName : Download Test Artifact
@ -509,10 +505,9 @@ stages:
- bash : mono --version
displayName : Check Mono version
- task : UseDotNet@2
displayName : 'Install .net core 3.0 '
displayName : 'Install .net core '
inputs:
version : $(dotnetVersion)
condition : ne(variables['osName'], 'Windows')
- checkout : none
- task : DownloadPipelineArtifact@2
displayName : Download Test Artifact
@ -579,10 +574,9 @@ stages:
steps:
- task : UseDotNet@2
displayName : 'Install .net core 3.0 '
displayName : 'Install .net core '
inputs:
version : $(dotnetVersion)
condition : ne(variables['osName'], 'Windows')
- checkout : none
- task : DownloadPipelineArtifact@2
displayName : Download Test Artifact
@ -608,9 +602,9 @@ stages:
displayName : Move Package Contents
- bash : |
if [[ $OSNAME == "Mac" ]]; then
url=https://github.com/mozilla/geckodriver/releases/download/v0.2 4.0/geckodriver-v0.24 .0-macos.tar.gz
url=https://github.com/mozilla/geckodriver/releases/download/v0.2 6.0/geckodriver-v0.26 .0-macos.tar.gz
elif [[ $OSNAME == "Linux" ]]; then
url=https://github.com/mozilla/geckodriver/releases/download/v0.2 4.0/geckodriver-v0.24 .0-linux64.tar.gz
url=https://github.com/mozilla/geckodriver/releases/download/v0.2 6.0/geckodriver-v0.26 .0-linux64.tar.gz
else
echo "Unhandled OS"
exit 1
@ -692,6 +686,10 @@ stages:
variables:
disable.coverage.autogenerate : 'true'
steps:
- task : UseDotNet@2
displayName : 'Install .net core'
inputs:
version : $(dotnetVersion)
- checkout : self # Need history for Sonar analysis
submodules : true
- powershell : Set-Service SCardSvr -StartupType Manual
@ -710,8 +708,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 netcoreapp3. 0 -r win-x64
TEST_DIR=_tests/netcoreapp3. 0 /win-x64/publish/ ./test.sh Windows Unit Coverage
./build.sh --backend -f netcoreapp3. 1 -r win-x64
TEST_DIR=_tests/netcoreapp3. 1 /win-x64/publish/ ./test.sh Windows Unit Coverage
displayName : Coverage Unit Tests
- task : SonarCloudAnalyze@1
displayName : Publish SonarCloud Results