Skip to content

Commit 46c5d53

Browse files
committed
Build using traversal project
Update testing versions
1 parent 5b64ca9 commit 46c5d53

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

.ci/versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"erlang": "25.3",
3-
"rabbitmq": "3.11.11"
2+
"erlang": "25.3.1",
3+
"rabbitmq": "3.11.15"
44
}

Build.csproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.Build.Traversal/3.2.0">
2+
3+
<PropertyGroup>
4+
<IsPackable>false</IsPackable>
5+
<MinVerSkip>true</MinVerSkip>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="projects/Benchmarks/Benchmarks.csproj" />
10+
<ProjectReference Include="projects/RabbitMQ.Client/RabbitMQ.Client.csproj" />
11+
<ProjectReference Include="projects/TestApplications/CreateChannel/CreateChannel.csproj" />
12+
<ProjectReference Include="projects/TestApplications/MassPublish/MassPublish.csproj" />
13+
<ProjectReference Include="projects/Unit/Unit.csproj" />
14+
</ItemGroup>
15+
16+
</Project>

build.ps1

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[CmdletBinding(PositionalBinding=$false)]
2+
param(
3+
[switch]$RunTests
4+
)
5+
6+
Write-Host "Run Parameters:" -ForegroundColor Cyan
7+
Write-Host "`tPSScriptRoot: $PSScriptRoot"
8+
Write-Host "`tRunTests: $RunTests"
9+
Write-Host "`tdotnet --version: $(dotnet --version)"
10+
11+
Write-Host "Building all projects (Build.csproj traversal)..." -ForegroundColor "Magenta"
12+
dotnet build "$PSScriptRoot\Build.csproj"
13+
Write-Host "Done building." -ForegroundColor "Green"
14+
15+
if ($RunTests) {
16+
Write-Host "Running tests: Build.csproj traversal (all frameworks)" -ForegroundColor "Magenta"
17+
dotnet test "$PSScriptRoot\Build.csproj" --no-build --logger "console;verbosity=detailed"
18+
if ($LastExitCode -ne 0) {
19+
Write-Host "Error with tests, aborting build." -Foreground "Red"
20+
Exit 1
21+
}
22+
Write-Host "Tests passed!" -ForegroundColor "Green"
23+
}
24+
25+
Write-Host "Done."

0 commit comments

Comments
 (0)