forked from elastic/elasticsearch-net
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
61 lines (48 loc) · 1.44 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
REM build
REM build build [skiptests]
REM build release [version] [skiptests]
REM build version [version] [skiptests]
REM build integrate [elasticsearch_versions] [skiptests]
REM - elasticsearch_versions can be multiple separated with a semi-colon ';'
.paket\paket.bootstrapper.exe
if errorlevel 1 (
exit /b %errorlevel%
)
.paket\paket.exe install
if errorlevel 1 (
exit /b %errorlevel%
)
SET TARGET="build"
SET VERSION=
SET ESVERSIONS=
SET DNXVERSION="default"
SET SKIPTESTS=0
SET APIKEY=
IF /I "%1"=="skiptests" (set SKIPTESTS="1")
IF NOT [%1]==[] (set TARGET="%1")
IF /I "%1"=="version" (
IF NOT [%2]==[] (set VERSION="%2")
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
)
IF /I "%1"=="release" (
IF NOT [%2]==[] (set VERSION="%2")
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
)
IF /I "%1%"=="integrate" (
IF NOT [%2]==[] (set ESVERSIONS="%2")
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
)
IF /I "%1%"=="canary" (
IF NOT [%2]==[] (set APIKEY="%2")
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
IF [%2]==[] (
ECHO When running build canary APIKEY the apikey is mandatory
EXIT /B 1
)
)
"packages\build\FAKE\tools\Fake.exe" "build\\scripts\\Targets.fsx" "target=%TARGET%" "version=%VERSION%" "esversions=%ESVERSIONS%" "skiptests=%SKIPTESTS%" "apiKey=%APIKEY%"