gretard / sonar-ps-plugin

Powershell language plugin for SonarQube
GNU Lesser General Public License v3.0
36 stars 7 forks source link

Add continuous integration on multiple platforms #17

Closed moerketh closed 5 years ago

moerketh commented 5 years ago

Hi!

Thanks for releasing v0.4.0!

To support the sonar-ps-plugin on multiple platforms it would be convenient to add some form of automated continuous integration to this project. This PR shows an example of a Azure DevOps pipeline to build & test this project on Linux, MacOS and Windows. The builds are here: https://dev.azure.com/thomasmoerkerken/sonar-ps-scanner/_build?definitionId=3 Feel free to use your own Azure DevOps account of course.

In order to make the builds succeed, the tests have been modified to default to powershell.exe for windows and pwsh for non-windows platforms. Also, the quotes around a path with spaces are only applied on a windows platform because it breaks on non-windows.

Would like to hear your thoughts.

gretard commented 5 years ago

Thank you for raising this. Looks great :) Have configured pipelines on my account and works perfectly :) I have updated release jar with a fix for path formatting issues on different OS'es.

moerketh commented 5 years ago

Awesome, thanks!