forked from elastic/elasticsearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
57 lines (47 loc) · 1.33 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
@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 restore
if errorlevel 1 (
exit /b %errorlevel%
)
SET TARGET="build"
SET VERSION=
SET ESVERSIONS=
SET DNXVERSION="default"
SET SKIPTESTS=0
SET APIKEY=
SET FEED="elasticsearch-net"
IF /I "%1"=="skiptests" (
set SKIPTESTS="1"
SHIFT
)
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 NOT [%3]==[] (set FEED="%3")
)
"packages\build\FAKE\tools\Fake.exe" "build\\scripts\\Targets.fsx" "target=%TARGET%" "version=%VERSION%" "esversions=%ESVERSIONS%" "skiptests=%SKIPTESTS%" "apiKey=%APIKEY%" "feed=%FEED%"