8000 Merge pull request #1609 from libgit2/azure-pipelines · apuchkov/libgit2sharp@9d6cc8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d6cc8e

Browse files
authored
Merge pull request libgit2#1609 from libgit2/azure-pipelines
Set up CI with Azure Pipelines
2 parents 321ac06 + 0a2d25a commit 9d6cc8e

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# LibGit2Sharp
22

3+
[![master azurepipelines][master-azurepipelines-badge]][master-azurepipelines]
34
[![master win][master-win-badge]][master-win]
45
[![master nix][master-nix-badge]][master-nix]
56
[![coverity][coverity-badge]][coverity-project]
67
[![coveralls][coveralls-badge]][coveralls-project]
78

9+
[master-azurepipelines-badge]: https://dev.azure.com/libgit2sharp/libgit2sharp/_apis/build/status/libgit2sharp
10+
[master-azurepipelines]: https://dev.azure.com/libgit2sharp/libgit2sharp/_apis/build/status/libgit2sharp?branchName=master
811
[master-win-badge]: https://ci.appveyor.com/api/projects/status/8qxcoqdo9kp7x2w9/branch/master?svg=true
912
[master-win]: https://ci.appveyor.com/project/libgit2/libgit2sharp/branch/master
1013
[master-nix-badge]: https://travis-ci.org/libgit2/libgit2sharp.svg?branch=master

azure-pipelines.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
trigger:
2+
- master
3+
- maint/*
4+
5+
variables:
6+
solution: '**/*.sln'
7+
buildPlatform: 'Any CPU'
8+
buildConfiguration: 'Release'
9+
10+
jobs:
11+
- job: Windows
12+
pool:
13+
vmImage: 'VS2017-Win2016'
14+
steps:
15+
- script: buildandtest.cmd
16+
- job: Linux
17+
pool:
18+
vmImage: 'Ubuntu 16.04'
19+
steps:
20+
- script: ./buildandtest.sh
21+
- job: macOS
22+
pool:
23+
vmImage: 'macOS 10.13'
24+
steps:
25+
- script: ./buildandtest.sh

buildandtest.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dotnet build "%~dp0\" /v:minimal /nologo /property:ExtraDefine="%EXTRADEFINE%"
3131
@IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
3232

3333
:: Run tests on Desktop and CoreCLR
34-
"%userprofile%\.nuget\packages\xunit.runner.console\2.3.1\tools\net452\xunit.console.exe" "%~dp0bin\LibGit2Sharp.Tests\%Configuration%\net461\LibGit2Sharp.Tests.dll" -noshadow
34+
"%userprofile%\.nuget\packages\xunit.runner.console\2.4.0\tools\net452\xunit.console.exe" "%~dp0bin\LibGit2Sharp.Tests\%Configuration%\net461\LibGit2Sharp.Tests.dll" -noshadow
3535
@IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
3636
dotnet test "%~dp0LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj" -f netcoreapp2.0 --no-restore --no-build
3737
@IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%

0 commit comments

Comments
 (0)
0