forked from rdotnet/rdotnet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.cmd
41 lines (31 loc) · 1.02 KB
/
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
41
@echo off
REM .paket\paket.bootstrapper.exe is not used with .NET core. paket needs to be used in transparent mode.
REM if not exist .paket\paket.bootstrapper.exe goto pktbootnotfound
REM .paket\paket.bootstrapper.exe
REM 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%