diff --git a/scripts/build-setup.ps1 b/scripts/build-setup.ps1 index 4b38d8c..1f11717 100644 --- a/scripts/build-setup.ps1 +++ b/scripts/build-setup.ps1 @@ -6,6 +6,7 @@ - downloading NUnit console runner - downloading OpenCover - downloading coveralls.net + - downloading SonarQube MSBuild scanner The script is agnostic to the platform it is run on (windows, linux or mac) .INPUTTYPE Documentary text, eg: @@ -16,17 +17,36 @@ Output type [Universal.SolarSystem.Planetary.Wisdom] Appears in -full #> +Import-Module -Name OneGet import-module PackageManagement function Build-Setup{ param ( - [Parameter(Mandatory = $true, HelpMessage = "Some dummy parameter.")] + [Parameter(Mandatory = $true, HelpMessage = "Operating.")] [String] - $Name + $Os ) - +} +function Check-Machine{ + $checkOk = true; + + if($PSVersionTable -eq $null ) + { + $checkOk = false; + Write-Host -ForegroundColor Red "Powershell version should be 6 or greater. Please upgrade!" + } + + return $checkOk; +} +function Install-Choco{ + param + { + [Parameter(Mandatory = $true, HelpMessage = "Operating system (can be Unix, Windows or .")] + [String] + $Os + } } \ No newline at end of file