File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1
- # RabbitMQ AMQP 1.0 DotNet Client
1
+ # RabbitMQ AMQP 1.0 .NET Client
2
2
3
-
4
- This library is in early stages of development.
5
- It is meant to be used with RabbitMQ 4.0.
3
+ This library is in early stages of development. It is meant to be used with RabbitMQ 4.0.
6
4
7
5
## How to Run
8
- - start the broker with ` ci/start-broker.sh `
9
- - run the tests with ` dotnet test ./Build.csproj --logger "console;verbosity=detailed" /p:AltCover=true `
6
+
7
+ - Start the broker with ` ./.ci/ubuntu/gha-setup.sh ` . Note that this has been tested on Ubuntu 22 with docker.
8
+ - Run the tests with ` dotnet test ./Build.csproj --logger "console;verbosity=detailed" /p:AltCover=true `
9
+ - Stop RabbitMQ with ` ./.ci/ubuntu/gha-setup.sh stop `
10
10
11
11
## Getting Started
12
- You can find an example in: ` docs/Examples/GettingStarted `
13
12
13
+ You can find an example in: ` docs/Examples/GettingStarted `
14
14
15
15
## TODO
16
16
Original file line number Diff line number Diff line change 3
3
[switch ]$RunTests
4
4
)
5
5
6
+ $ErrorActionPreference = ' Stop'
7
+ Set-StrictMode - Version Latest
8
+ $PSNativeCommandUseErrorActionPreference = $true
9
+
6
10
Write-Host " Run Parameters:" - ForegroundColor Cyan
7
11
Write-Host " `t PSScriptRoot: $PSScriptRoot "
8
12
Write-Host " `t RunTests: $RunTests "
9
13
Write-Host " `t dotnet --version: $ ( dotnet -- version) "
10
14
11
15
Write-Host " Building all projects (Build.csproj traversal)..." - ForegroundColor " Magenta"
12
- dotnet build " $PSScriptRoot \Build.csproj"
16
+
17
+ New-Variable - Name build_csproj_file - Option Constant `
18
+ - Value (Join-Path - Path $PSScriptRoot - ChildPath ' Build.csproj' )
19
+
20
+ dotnet build $build_csproj_file
13
21
Write-Host " Done building." - ForegroundColor " Green"
14
22
15
23
if ($RunTests ) {
16
24
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 ) {
25
+ dotnet test $build_csproj_file -- no- build -- logger ' console;verbosity=detailed' ' /p:AltCover=true'
26
+ if ($LastExitCode -ne 0 )
27
+ {
19
28
Write-Host " Error with tests, aborting build." - Foreground " Red"
20
29
Exit 1
21
30
}
You can’t perform that action at this time.
0 commit comments