- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.libgit2sharp.cmd
More file actions
Latest commit
35 lines (25 loc) · 897 Bytes
/
Copy pathbuild.libgit2sharp.cmd
File metadata and controls
35 lines (25 loc) · 897 Bytes
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
@ECHOOFF
REM Sample usages:
REM
REM Building and running tests
REM - build.libgit2sharp.cmd
REM
REM Building, running tests and embedding the libgit2sharp commit sha
REM - build.libgit2sharp.cmd "6a6eb81272876fd63555165beef44de2aaa78a14"
REM
REM Building and identifying potential leaks while running tests
REM - build.libgit2sharp.cmd "unknown" "LEAKS_IDENTIFYING"
SETLOCAL
SETBASEDIR=%~dp0
SETFrameworkVersion=v4.0.30319
SETFrameworkDir=%SystemRoot%\Microsoft.NET\Framework
ifexist"%SystemRoot%\Microsoft.NET\Framework64" (
SETFrameworkDir=%SystemRoot%\Microsoft.NET\Framework64
)
ECHOON
SETCommitSha=%~1
SETExtraDefine=%~2
"%BASEDIR%Lib/NuGet/NuGet.exe" restore "%BASEDIR%LibGit2Sharp.sln"
"%FrameworkDir%\%FrameworkVersion%\msbuild.exe""%BASEDIR%CI\build.msbuild" /property:CommitSha=%CommitSha% /property:ExtraDefine="%ExtraDefine%"
ENDLOCAL
EXIT /B %ERRORLEVEL%