Skip to content

Commit eab9c9a

Browse files
committed
Merge remote-tracking branch 'origin/master' into refactor/aggs-metadata
2 parents 8411dab + 8f6bd34 commit eab9c9a

File tree

343 files changed

+5750
-2444
lines changed

Some content is hidden

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

343 files changed

+5750
-2444
lines changed

build.bat

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,26 @@ IF /I "%1"=="skiptests" (set SKIPTESTS="1")
3232
IF NOT [%1]==[] (set TARGET="%1")
3333

3434
IF /I "%1"=="version" (
35-
IF NOT [%2]==[] (set VERSION="%2")
35+
IF NOT [%2]==[] (set VERSION="%2")
3636
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
3737
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
3838
)
3939
IF /I "%1"=="release" (
40-
IF NOT [%2]==[] (set VERSION="%2")
40+
IF NOT [%2]==[] (set VERSION="%2")
4141
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
4242
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
4343
)
4444

4545
IF /I "%1%"=="integrate" (
46-
IF NOT [%2]==[] (set ESVERSIONS="%2")
46+
IF NOT [%2]==[] (set ESVERSIONS="%2")
4747
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
4848
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
4949
)
5050

5151
IF /I "%1%"=="canary" (
52-
IF NOT [%2]==[] (set APIKEY="%2")
52+
IF NOT [%2]==[] (set APIKEY="%2")
5353
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
5454
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
55-
IF [%2]==[] (
56-
ECHO When running build canary APIKEY the apikey is mandatory
57-
EXIT /B 1
58-
)
5955
)
6056

6157
"packages\build\FAKE\tools\Fake.exe" "build\\scripts\\Targets.fsx" "target=%TARGET%" "version=%VERSION%" "esversions=%ESVERSIONS%" "skiptests=%SKIPTESTS%" "apiKey=%APIKEY%"

build/scripts/Releasing.fsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,20 @@ type Release() =
103103
if (projectName.Equals("Nest", StringComparison.InvariantCultureIgnoreCase) = true)
104104
then
105105
let nuspec = sprintf "%s/Nest.nuspec" unzippedDir
106-
FileHelper.RegexReplaceInFileWithEncoding "<id>Nest</id>" "<id>NEST</id>" System.Text.Encoding.UTF8 nuspec
106+
FileHelper.RegexReplaceInFileWithEncoding
107+
"<id>Nest</id>"
108+
"<id>NEST</id>"
109+
System.Text.Encoding.UTF8
110+
nuspec
111+
112+
// TODO: Make this more generic in limiting to major version based
113+
// on the major version of the version specified.
114+
FileHelper.RegexReplaceInFileWithEncoding
115+
"<dependency id=\"Newtonsoft.Json\" version=\".*\" />"
116+
"<dependency id=\"Newtonsoft.Json\" version=\"[8,9)\" />"
117+
System.Text.Encoding.UTF8
118+
nuspec
119+
107120

108121
// Include PDB for each target framework
109122
let frameworkDirs = (sprintf "%s/lib" unzippedDir |> directoryInfo).GetDirectories()

build/scripts/Targets.fsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Target "Release" <| fun _ ->
7272

7373
Target "Canary" <| fun _ ->
7474
trace "Running canary build"
75-
Release.PublishCanaryBuild (getBuildParam "apikey")
75+
let apiKey = (getBuildParam "apikey");
76+
if (not (String.IsNullOrWhiteSpace apiKey) || apiKey = "ignore") then Release.PublishCanaryBuild apiKey
7677

7778
BuildFailureTarget "NotifyTestFailures" <| fun _ -> Tests.Notify() |> ignore
7879

src/Benchmarking/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[assembly: AssemblyCompanyAttribute("Elasticsearch")]
88
[assembly: AssemblyConfigurationAttribute("Release")]
99
[assembly: AssemblyVersionAttribute("2.0.0")]
10-
[assembly: AssemblyFileVersionAttribute("2.0.0")]
11-
[assembly: AssemblyInformationalVersionAttribute("2.0.0-alpha2")]
10+
[assembly: AssemblyFileVersionAttribute("2.1.0")]
11+
[assembly: AssemblyInformationalVersionAttribute("2.1.0-ci20160129160552")]
1212
namespace System {
1313
internal static class AssemblyVersionInformation {
1414
internal const string Version = "2.0.0";

src/Benchmarking/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0-*",
2+
"version": "2.0.0-ci20160129160552",
33
"compilationOptions": {
44
"warningsAsErrors": false,
55
"define": [ "LINQ", "NDESK_OPTIONS" ],

0 commit comments

Comments
 (0)