-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cmd
48 lines (37 loc) · 961 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
41
42
43
44
45
46
47
48
@ECHO OFF
SET proj=source\All.sln
SET packageProj=source\Validation\Validation.csproj
SET publishDir=D:\Packages
SET out=build\out
SET ver=version.json
REM SET build=build
REM PATH %PATH%;%build%
ECHO Clean up previuous build artefacts...
CALL build\clean.cmd
IF /I "%ERRORLEVEL%" NEQ "0" GOTO fail
ECHO Restoring NuGet packages...
CALL build\restore.cmd
IF /I "%ERRORLEVEL%" NEQ "0" GOTO fail
ECHO Getting latest GIT version...
CALL build\version.cmd
ECHO Building soution...
CALL build\build.cmd
IF /I "%ERRORLEVEL%" NEQ "0" GOTO fail
ECHO Running tests...
CALL build\test.cmd
IF /I "%ERRORLEVEL%" NEQ "0" GOTO fail
ECHO Creation NuGet package...
CALL build\pack.cmd
IF /I "%ERRORLEVEL%" NEQ "0" GOTO fail
ECHO Publishing...
CALL build\publish.cmd
IF /I "%ERRORLEVEL%" NEQ "0" GOTO fail
:success
ECHO -------------------------------------
ECHO BUILDING DONE.
EXIT
:fail
ECHO -------------------------------------
ECHO BUILDING FAILED!
PAUSE
EXIT