|
|
@ -28,12 +28,28 @@ jobs:
|
|
|
|
submodules: true
|
|
|
|
submodules: true
|
|
|
|
persistCredentials: false
|
|
|
|
persistCredentials: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This is required for the SonarCloud analyzer
|
|
|
|
|
|
|
|
- task: UseDotNet@2
|
|
|
|
|
|
|
|
displayName: "Install .NET Core SDK 2.1"
|
|
|
|
|
|
|
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
|
|
|
packageType: sdk
|
|
|
|
|
|
|
|
version: '2.1.805'
|
|
|
|
|
|
|
|
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: "Update DotNet"
|
|
|
|
displayName: "Update DotNet"
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
|
|
|
packageType: sdk
|
|
|
|
version: ${{ parameters.DotNetSdkVersion }}
|
|
|
|
version: ${{ parameters.DotNetSdkVersion }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- task: SonarCloudPrepare@1
|
|
|
|
|
|
|
|
displayName: 'Prepare analysis on SonarCloud'
|
|
|
|
|
|
|
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
|
|
|
SonarCloud: 'Sonarcloud for Jellyfin'
|
|
|
|
|
|
|
|
organization: 'jellyfin'
|
|
|
|
|
|
|
|
projectKey: 'jellyfin_jellyfin'
|
|
|
|
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: 'Run CLI Tests'
|
|
|
|
displayName: 'Run CLI Tests'
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
@ -44,6 +60,14 @@ jobs:
|
|
|
|
testRunTitle: $(Agent.JobName)
|
|
|
|
testRunTitle: $(Agent.JobName)
|
|
|
|
workingDirectory: "$(Build.SourcesDirectory)"
|
|
|
|
workingDirectory: "$(Build.SourcesDirectory)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- task: SonarCloudAnalyze@1
|
|
|
|
|
|
|
|
displayName: 'Run Code Analysis'
|
|
|
|
|
|
|
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- task: SonarCloudPublish@1
|
|
|
|
|
|
|
|
displayName: 'Publish Quality Gate Result'
|
|
|
|
|
|
|
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
|
|
|
|
|
|
|
|
|
|
|
- task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4
|
|
|
|
- task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4
|
|
|
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) # !! THIS is for V1 only V2 will/should support merging
|
|
|
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) # !! THIS is for V1 only V2 will/should support merging
|
|
|
|
displayName: 'Run ReportGenerator'
|
|
|
|
displayName: 'Run ReportGenerator'
|
|
|
@ -62,3 +86,4 @@ jobs:
|
|
|
|
summaryFileLocation: "$(Agent.TempDirectory)/merged/**.xml"
|
|
|
|
summaryFileLocation: "$(Agent.TempDirectory)/merged/**.xml"
|
|
|
|
pathToSources: $(Build.SourcesDirectory)
|
|
|
|
pathToSources: $(Build.SourcesDirectory)
|
|
|
|
failIfCoverageEmpty: true
|
|
|
|
failIfCoverageEmpty: true
|
|
|
|
|
|
|
|
|
|
|
|