-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update pipeline * Rename * Fix pipeline: * Use yaml instead of yml * Fix indent in yaml file * cleanup and improve yaml * cleanup * fix release dependencies * Added icons| * Fix * minor update| * update icons
- Loading branch information
Showing
13 changed files
with
254 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
steps: | ||
|
||
- task: DeleteFiles@1 | ||
displayName: Remove unneeded files | ||
inputs: | ||
contents: | | ||
_output/**/*.xlm | ||
_output/**/*.config | ||
_output/**/*.pdb | ||
_output/Win/Assemblies/runtimes/!(win*)/**/*.* | ||
_output/Win/Assemblies/!(runtimes)/*.resources.dll | ||
- pwsh: | | ||
Get-ChildItem -Path "_output\Win\Assemblies" -Recurse | Where-Object { $_.PSIsContainer -and @(Get-ChildItem -LiteralPath $_.FullName -Recurse -Force).Count -eq 0 } | Remove-Item -Recurse | ||
Get-ChildItem -Path "_output\Win\Assemblies\runtimes" -Recurse | Where-Object { $_.PSIsContainer -and @(Get-ChildItem -LiteralPath $_.FullName -Recurse -Force).Count -eq 0 } | Remove-Item -Recurse | ||
displayName: Remove empty directories | ||
|
||
- pwsh: | | ||
nuget install NSIS -OutputDirectory ./packages | ||
makensis.exe /DPRODUCT_VERSION=$Env:NBGV_SEMVER2 _setup/RepoM.nsi | ||
displayName: ⚙️ Create installer | ||
|
||
- task: DeleteFiles@1 | ||
displayName: Remove binaries | ||
inputs: | ||
contents: | | ||
_output/win | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 📢 Publish artifact | ||
inputs: | ||
# PathtoPublish: "$(Build.ArtifactStagingDirectory)" | ||
PathtoPublish: "_output" | ||
ArtifactName: installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
steps: | ||
|
||
- powershell: .azuredevops/Variables/_pipelines.ps1 | ||
failOnStderr: true | ||
displayName: ⚙️ Set pipeline variables based on source | ||
name: SetPipelineVariables | ||
|
||
- task: UseDotNet@2 | ||
displayName: ⚙️ Use specified dotnet sdk version | ||
inputs: | ||
version: $(DOTNETSDKVERSION) | ||
includePreviewVersions: false | ||
condition: and(succeeded(), ne(variables['DOTNETSDKVERSION'], '')) | ||
|
||
- script: dotnet --info | ||
displayName: Show dotnet SDK info |
12 changes: 12 additions & 0 deletions
12
.azuredevops/Pipelines/Templates/prepare-code-analysis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
steps: | ||
|
||
- task: SonarCloudPrepare@2 | ||
displayName: Prepare analysis on SonarCloud | ||
inputs: | ||
SonarCloud: SonarCloudGithub | ||
organization: coenm-github | ||
projectKey: RepoM | ||
projectName: RepoM | ||
extraProperties: | | ||
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/**/*.trx | ||
sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)/**/*.opencover.xml |
19 changes: 19 additions & 0 deletions
19
.azuredevops/Pipelines/Templates/publish-code-analysis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
steps: | ||
|
||
- task: SonarCloudAnalyze@2 | ||
displayName: ⚙️ Run Code Analysis | ||
|
||
- task: SonarCloudPublish@2 | ||
displayName: 📢 Publish Quality Gate Result | ||
|
||
- pwsh: | | ||
dotnet tool install --tool-path . dotnet-reportgenerator-globaltool | ||
./reportgenerator "-reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml" "-targetdir:$(Agent.TempDirectory)" "-reporttypes:Cobertura" | ||
displayName: Merge coverage reports | ||
name: MergeCoverageReports | ||
|
||
- task: PublishCodeCoverageResults@2 | ||
displayName: 📢 Publish code coverage to devops | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: '$(Agent.TempDirectory)/Cobertura.xml' |
13 changes: 13 additions & 0 deletions
13
.azuredevops/Pipelines/Templates/publish-release-dependencies.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
steps: | ||
|
||
- task: CopyFiles@2 | ||
displayName: 🗃️ Copy release dependencies | ||
inputs: | ||
contents: 'dotnet-releaser.toml' | ||
targetFolder: _output_release_dependencies | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 📢 Publish release dependencies | ||
inputs: | ||
PathtoPublish: "_output_release_dependencies" | ||
ArtifactName: release-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.