forked from rdotnet/rdotnet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cmd
40 lines (30 loc) · 928 Bytes
/
build.cmd
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
@echo off
if not exist .paket\paket.bootstrapper.exe goto pktbootnotfound
.paket\paket.bootstrapper.exe
if not errorlevel 0 goto pktbootfailed
.paket\paket.exe restore
if not errorlevel 0 goto pktrestorefailed
packages\FAKE\tools\FAKE.exe %* --fsiargs -d:MONO build.fsx
REM packages\FAKE\tools\FAKE.exe Test --fsiargs -d:MONO build.fsx
if not errorlevel 0 goto fakefailed
REM ".\packages\NuGet.CommandLine\tools\NuGet.exe" push bin\R.NET.Community.1.6.2.nupkg
set exit_code=0
goto leave
:pktbootnotfound
echo command not found: .paket\paket.bootstrapper.exe
set exit_code=1
goto leave
:pktbootfailed
echo command failed: .paket\paket.bootstrapper.exe
set exit_code=1
goto leave
:pktrestorefailed
echo command failed: .paket\paket.exe restore
set exit_code=1
goto leave
:fakefailed
echo command failed: packages\FAKE\tools\FAKE.exe %* --fsiargs -d:MONO build.fsx
set exit_code=1
goto leave
:leave
exit /b %exit_code%