Skip to content

Commit 7f54594

Browse files
committed
Add benchmark to commandline help
1 parent fd345f6 commit 7f54594

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

build/scripts/Commandline.fsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ Targets:
3030
also pushes to upstream (myget)
3131
* diff <github|nuget|dir|assembly> <version|path 1> <version|path 2> [format]
3232
* cluster <cluster-name> [version]
33+
- Start a cluster defined in Tests.Core or Tests from the command line and leaves it running
34+
untill a key is pressed. Handy if you want to run the integration tests numerous times while developing
35+
* benchmark [url] [username] [password] [non-interactive]
36+
- Runs a benchmark from Tests.Benchmarking and indexes the results to [url] when provided.
37+
If non-interactive runs all benchmarks without prompting
3338
3439
NOTE: both the `test` and `integrate` targets can be suffixed with `-all` to force the tests against all suported TFM's
3540
@@ -151,6 +156,13 @@ module Commandline =
151156
setBuildParam "nonInteractive" "1"
152157
setBuildParam "username" username
153158
setBuildParam "password" password
159+
160+
| ["benchmark"; IsUrl elasticsearch; "non-interactive"] ->
161+
setBuildParam "elasticsearch" elasticsearch
162+
setBuildParam "nonInteractive" "1"
163+
164+
| ["benchmark"; "non-interactive"] ->
165+
setBuildParam "nonInteractive" "1"
154166

155167
| ["benchmark"; IsUrl elasticsearch; username; password] ->
156168
setBuildParam "elasticsearch" elasticsearch
@@ -162,13 +174,6 @@ module Commandline =
162174
setBuildParam "elasticsearch" elasticsearch
163175
setBuildParam "nonInteractive" "0"
164176

165-
| ["benchmark"; IsUrl elasticsearch; "non-interactive"] ->
166-
setBuildParam "elasticsearch" elasticsearch
167-
setBuildParam "nonInteractive" "1"
168-
169-
| ["benchmark"; "non-interactive"] ->
170-
setBuildParam "nonInteractive" "1"
171-
172177
| ["profile"; IsUrl elasticsearch] ->
173178
setBuildParam "elasticsearch" elasticsearch
174179

0 commit comments

Comments
 (0)