Commit cdf9d033 authored by Nick Craver's avatar Nick Craver

Add -StartServers to build.ps1

This allows running VSTS builds in 1 step.
parent a5517776
......@@ -3,6 +3,7 @@ param(
[string] $Version,
[string] $BuildNumber,
[bool] $CreatePackages,
[switch] $StartServers,
[bool] $RunTests = $true,
[string] $PullRequestNumber
)
......@@ -65,6 +66,11 @@ if ($PullRequestNumber) {
}
if ($RunTests) {
if ($StartServers) {
Write-Host "Starting all servers for testing: $project (all frameworks)" -ForegroundColor "Magenta"
& .\RedisConfigs\start-all.cmd
Write-Host "Servers Started." -ForegroundColor "Green"
}
dotnet restore /ConsoleLoggerParameters:Verbosity=Quiet
foreach ($project in $testsToRun) {
Write-Host "Running tests: $project (all frameworks)" -ForegroundColor "Magenta"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment