Skip to content

Commit 32a78aa

Browse files
committed
Move differ target over to use AssemblyDiffer (#3499)
* Move differ target over to use https://github.com/nullean/AssemblyDiffer#differ as a dotnet tool * String.concat is clearer in intend (cherry picked from commit 9f3e657)
1 parent 1f9e3b0 commit 32a78aa

File tree

6 files changed

+15
-419
lines changed

6 files changed

+15
-419
lines changed

build/scripts/Commandline.fsx

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ Targets:
2727
elasticsearch versions to test or `latest`. Can filter tests by <clustername> and <testfilter>
2828
* canary
2929
- create a canary nuget package based on the current version.
30-
* diff <github|nuget|dir|assembly> <version|path 1> <version|path 2> [format]
30+
* diff <..args>
31+
- runs assembly-differ with the specified arguments
32+
see: https://github.com/nullean/AssemblyDiffer#differ
3133
* cluster <cluster-name> [version]
3234
- Start a cluster defined in Tests.Core or Tests from the command line and leaves it running
3335
untill a key is pressed. Handy if you want to run the integration tests numerous times while developing
@@ -188,27 +190,6 @@ module Commandline =
188190
setBuildParam "clusterfilter" "ConnectionReuse"
189191
setBuildParam "numberOfConnections" numberOfConnections
190192

191-
| ["diff"; IsDiff diffType; IsProject project; firstVersionOrPath; secondVersionOrPath; IsFormat format] ->
192-
setBuildParam "diffType" diffType
193-
setBuildParam "project" project
194-
setBuildParam "first" firstVersionOrPath
195-
setBuildParam "second" secondVersionOrPath
196-
setBuildParam "format" format
197-
| ["diff"; IsDiff diffType; IsProject project; firstVersionOrPath; secondVersionOrPath] ->
198-
setBuildParam "diffType" diffType
199-
setBuildParam "project" project
200-
setBuildParam "first" firstVersionOrPath
201-
setBuildParam "second" secondVersionOrPath
202-
| ["diff"; IsDiff diffType; firstVersionOrPath; secondVersionOrPath; IsFormat format] ->
203-
setBuildParam "diffType" diffType
204-
setBuildParam "first" firstVersionOrPath
205-
setBuildParam "second" secondVersionOrPath
206-
setBuildParam "format" format
207-
| ["diff"; IsDiff diffType; firstVersionOrPath; secondVersionOrPath] ->
208-
setBuildParam "diffType" diffType
209-
setBuildParam "first" firstVersionOrPath
210-
setBuildParam "second" secondVersionOrPath
211-
212193
| ["cluster"; clusterName] ->
213194
setBuildParam "clusterName" clusterName
214195
setBuildParam "clusterVersion" ""
@@ -218,6 +199,7 @@ module Commandline =
218199

219200
| ["touch"; ] -> ignore()
220201
| ["temp"; ] -> ignore()
202+
| "diff" :: tail -> ignore()
221203
| ["canary"; ] -> ignore()
222204
| _ ->
223205
traceError usage

0 commit comments

Comments
 (0)