Fix build (tests are in .\src\ ya dummy)

parent f685e203
...@@ -12,12 +12,14 @@ Write-Host " RunTests: $RunTests" ...@@ -12,12 +12,14 @@ Write-Host " RunTests: $RunTests"
Write-Host " dotnet --version:" (dotnet --version) Write-Host " dotnet --version:" (dotnet --version)
$packageOutputFolder = "$PSScriptRoot\.nupkgs" $packageOutputFolder = "$PSScriptRoot\.nupkgs"
$projectsToBuild = $projectsToBuild = @(
'StackExchange.Redis', 'StackExchange.Redis',
'NRediSearch' 'NRediSearch'
)
$testsToRun = $testsToRun = @(
'StackExchange.Redis.Tests' 'StackExchange.Redis.Tests'
)
if ($PullRequestNumber) { if ($PullRequestNumber) {
Write-Host "Building for a pull request (#$PullRequestNumber), skipping packaging." -ForegroundColor Yellow Write-Host "Building for a pull request (#$PullRequestNumber), skipping packaging." -ForegroundColor Yellow
...@@ -25,7 +27,7 @@ if ($PullRequestNumber) { ...@@ -25,7 +27,7 @@ if ($PullRequestNumber) {
} }
Write-Host "Building projects..." -ForegroundColor "Magenta" Write-Host "Building projects..." -ForegroundColor "Magenta"
foreach ($project in $projectsToBuild + $testsToRun) { foreach ($project in $projectsToBuild) {
Write-Host "Building $project (dotnet restore/build)..." -ForegroundColor "Magenta" Write-Host "Building $project (dotnet restore/build)..." -ForegroundColor "Magenta"
dotnet restore ".\src\$project\$project.csproj" /p:CI=true dotnet restore ".\src\$project\$project.csproj" /p:CI=true
dotnet build ".\src\$project\$project.csproj" -c Release /p:CI=true dotnet build ".\src\$project\$project.csproj" -c Release /p:CI=true
......
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