Skip to content

Commit d5db225

Browse files
committed
merge
2 parents 4cf0474 + 3797527 commit d5db225

File tree

81 files changed

+463
-17101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+463
-17101
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ TestResult.xml
2020
rabbit-mock.snk
2121
.vscode/
2222

23+
test.sh
24+
*.VisualState.xml
25+
test-output.log
26+
InternalTrace*
27+
nunit-agent*
28+
>>>>>>> origin/rabbitmq-dotnet-client-192
2329
#################
2430
## Visual Studio
2531
#################

CODE_OF_CONDUCT.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open
4+
and welcoming community, we pledge to respect all people who contribute through reporting
5+
issues, posting feature requests, updating documentation, submitting pull requests or
6+
patches, and other activities.
7+
8+
We are committed to making participation in this project a harassment-free experience for
9+
everyone, regardless of level of experience, gender, gender identity and expression,
10+
sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
11+
religion, or nationality.
12+
13+
Examples of unacceptable behavior by participants include:
14+
15+
* The use of sexualized language or imagery
16+
* Personal attacks
17+
* Trolling or insulting/derogatory comments
18+
* Public or private harassment
19+
* Publishing other's private information, such as physical or electronic addresses,
20+
without explicit permission
21+
* Other unethical or unprofessional conduct
22+
23+
Project maintainers have the right and responsibility to remove, edit, or reject comments,
24+
commits, code, wiki edits, issues, and other contributions that are not aligned to this
25+
Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors
26+
that they deem inappropriate, threatening, offensive, or harmful.
27+
28+
By adopting this Code of Conduct, project maintainers commit themselves to fairly and
29+
consistently applying these principles to every aspect of managing this project. Project
30+
maintainers who do not follow or enforce the Code of Conduct may be permanently removed
31+
from the project team.
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an
34+
individual is representing the project or its community.
35+
36+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
37+
contacting a project maintainer at [[email protected]](mailto:[email protected]). All complaints will
38+
be reviewed and investigated and will result in a response that is deemed necessary and
39+
appropriate to the circumstances. Maintainers are obligated to maintain confidentiality
40+
with regard to the reporter of an incident.
41+
42+
This Code of Conduct is adapted from the
43+
[Contributor Covenant](http://contributor-covenant.org), version 1.3.0, available at
44+
[contributor-covenant.org/version/1/3/0/](http://contributor-covenant.org/version/1/3/0/)

CONTRIBUTING.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Pull requests is the primary place of discussing code changes.
88
The process is fairly standard:
99

1010
* Fork the repository or repositories you plan on contributing to
11-
* Copy `Local.props.example` into `Local.props` and make adjustments if necessary, otherwise the Solution won't load
1211
* Clone [RabbitMQ umbrella repository](https://github.com/rabbitmq/rabbitmq-public-umbrella)
1312
* `cd umbrella`, `make co`
1413
* Create a branch with a descriptive name in the relevant repositories
@@ -21,22 +20,9 @@ If what you are going to work on is a substantial change, please first ask the c
2120
of their opinion on [RabbitMQ mailing list](https://groups.google.com/forum/#!forum/rabbitmq-users).
2221

2322

24-
## (Brief) Code of Conduct
23+
## Code of Conduct
2524

26-
In one line: don't be a dick.
27-
28-
Be respectful to the maintainers and other contributors. Open source
29-
contributors put long hours into developing projects and doing user
30-
support. Those projects and user support are available for free. We
31-
believe this deserves some respect.
32-
33-
Be respectful to people of all races, genders, religious beliefs and
34-
political views. Regardless of how brilliant a pull request is
35-
technically, we will not tolerate disrespectful or aggressive
36-
behaviour.
37-
38-
Contributors who violate this straightforward Code of Conduct will see
39-
their pull requests closed and locked.
25+
See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).
4026

4127

4228
## Contributor Agreement

RUNNING_TESTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ On Windows run:
3737
On osx/linux run:
3838

3939
run-test.sh
40+
41+
42+
Running individual tests and fixtures on Windows is trivial using the Visual Studio test runner.
43+
To run a single test fixture on osx/linux you can use:
44+
45+
./fake.sh Test fixture=MyNameSpace.MyFixture

appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.5.5.{build}"
1+
version: "3.6.3.{build}"
22

33
platform: Any CPU
44
configuration: Release
@@ -43,5 +43,7 @@ after_build:
4343
4444
artifacts:
4545
- path: '*.nupkg'
46+
- path: '*.log'
47+
name: Logs
4648

4749
deploy: off

build.fsx

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ let amqpSpec0_9BaseName = "amqp0-9.stripped.xml"
5858
let amqpSpec0_9_1i = specsDir </> amqpSpec0_9_1BaseName
5959
let autogeneratedApi0_9_1BaseName = "autogenerated-api-0-9-1.cs"
6060

61+
let setRabbitMqCtlPath () =
62+
let current = Environment.GetEnvironmentVariable "RABBITMQ_RABBITMQCTL_PATH"
63+
let ctlPath = __SOURCE_DIRECTORY__ </> "../rabbit/scripts/rabbitmqctl"
64+
if current = null then
65+
trace <| sprintf "setting RABBITMQ_RABBITMQCTL_PATH to %s" ctlPath
66+
Environment.SetEnvironmentVariable("RABBITMQ_RABBITMQCTL_PATH", ctlPath)
67+
6168
let createGensrcDirs () =
6269
projects
6370
|> List.map (fun p -> "./gensrc" </> p)
@@ -117,36 +124,47 @@ Target "UpdateAssemblyInfos"
117124
ReplaceAssemblyInfoVersionsBulk assemblyInfos (fun f ->
118125
{ f with AssemblyVersion = version }))
119126

120-
let test excludes =
127+
let test ``where`` =
128+
setRabbitMqCtlPath ()
129+
let w =
130+
match ``where``, getBuildParamOrDefault "where" "" with
131+
| (""|null), w -> w
132+
| _, (""|null) -> ``where``
133+
| w, x ->
134+
sprintf "(%s) & (%s)" w x
135+
trace <| sprintf "where %s" w
121136
!! ("./projects/client/**/build/**/unit-tests.dll")
122-
|> NUnit (fun p ->
137+
|> Testing.NUnit3.NUnit3 (fun p ->
123138
{ p with
139+
Labels = Testing.NUnit3.LabelsLevel.All
140+
ProcessModel = Testing.NUnit3.SingleProcessModel
124141
TimeOut = TimeSpan.FromMinutes 30.
125-
ExcludeCategory = excludes
126-
DisableShadowCopy = true;
127-
OutputFile = "./TestResults.xml"})
142+
Where = w
143+
OutputDir = "test-output.log"})
128144

129145
Target "Test" (fun _ ->
130146
match buildEnv with
131-
| Mono -> "MonoBug"
147+
| Mono -> "cat != MonoBug"
132148
| _ -> ""
133149
|> test)
134150

135151
Target "TestQuick" (fun _ ->
136-
let excludes =
152+
setRabbitMqCtlPath ()
153+
let ``where`` =
137154
match buildEnv with
138-
| Mono -> "RequireSMP,LongRunning,MonoBug"
139-
| _ -> "RequireSMP,LongRunning"
155+
| Mono -> "cat != RequireSMP & cat != LongRunning & cat != MonoBug"
156+
| _ -> "cat != RequireSMP & cat != LongRunning"
140157
!! ("./projects/client/Unit/build/**/unit-tests.dll")
141-
|> NUnit (fun p ->
158+
|> Testing.NUnit3.NUnit3 (fun p ->
142159
{ p with
160+
Labels = Testing.NUnit3.LabelsLevel.All
161+
ProcessModel = Testing.NUnit3.SingleProcessModel
143162
TimeOut = TimeSpan.FromMinutes 30.
144-
ExcludeCategory = excludes
145-
DisableShadowCopy = true;
146-
OutputFile = "./TestResults.xml"}))
147-
163+
Where = ``where``
164+
OutputDir = "test-output.log"}))
165+
148166
Target "AppVeyorTest" (fun _ ->
149-
test "RequireSMP,LongRunning,GCTest")
167+
test "cat != RequireSMP & cat != LongRunning & cat != GCTest")
150168

151169
Target "CreateGensrcDir" createGensrcDirs
152170

fake.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
IF %1 == "" GOTO End
33
.paket\paket.bootstrapper.exe
44
.paket\paket.exe restore
5-
packages\FAKE\tools\FAKE.exe build.fsx %1
5+
packages\FAKE\tools\FAKE.exe build.fsx %*
66

77
:End
88
ECHO "no target specified"

fake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44

55
mono .paket/paket.bootstrapper.exe
66
mono .paket/paket.exe restore
7-
mono ./packages/FAKE/tools/FAKE.exe build.fsx $1
7+
mono ./packages/FAKE/tools/FAKE.exe build.fsx $@

lib/nunit/Images/Ellipsis.gif

-101 Bytes
Binary file not shown.
-761 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)