File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ install:
20
20
21
21
# Build libgit2, LibGit2Sharp and run the tests
22
22
script :
23
- - ./build.libgit2sharp .sh 'LEAKS_IDENTIFYING'
23
+ - ./buildandtest .sh 'LEAKS_IDENTIFYING'
24
24
25
25
# Only watch the development branch
26
26
branches :
Original file line number Diff line number Diff line change
1
+ @ ECHO OFF
2
+
3
+ REM Sample usages:
4
+ REM
5
+ REM Building and running tests
6
+ REM - build.libgit2sharp.cmd
7
+ REM
8
+ REM Building and identifying potential leaks while running tests
9
+ REM - build.libgit2sharp.cmd "LEAKS_IDENTIFYING"
10
+
11
+ SETLOCAL
12
+
13
+ SET EXTRADEFINE = %~1
14
+
15
+ where dotnet 1 > nul 2 > nul
16
+ IF ERRORLEVEL 1 (
17
+ ECHO Cannot find dotnet.exe. Run from a VS2017 Developer Prompt.
18
+ EXIT /B 1
19
+ )
20
+
21
+ ECHO ON
22
+
23
+ SET Configuration = Release
24
+
25
+ :: Restore packages
26
+ dotnet restore " %~dp0 \"
27
+ @ IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
28
+
29
+ :: Build
30
+ dotnet build " %~dp0 \" /v:minimal /nologo /property:ExtraDefine=" %EXTRADEFINE% "
31
+ @ IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
32
+
33
+ :: Run tests on Desktop and CoreCLR
34
+ " %userprofile% \.nuget\packages\xunit.runner.console\2.2.0\tools\xunit.console.exe" " %~dp0 bin\LibGit2Sharp.Tests\%Configuration% \net46\LibGit2Sharp.Tests.dll" -noshadow
35
+ @ IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
36
+ dotnet test " %~dp0 LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj" --no-build -f netcoreapp1.0
37
+ @ IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
38
+
39
+ EXIT /B %ERRORLEVEL%
File renamed without changes.
You can’t perform that action at this time.
0 commit comments