Skip to content

Commit 90801da

Browse files
committed
Merge branch 'feature/azure-pipelines'
+semver: skip
2 parents c831fb1 + 5c37b6e commit 90801da

File tree

7 files changed

+53
-401
lines changed

7 files changed

+53
-401
lines changed

BencodeNET.sln

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
77
ProjectSection(SolutionItems) = preProject
88
.gitattributes = .gitattributes
99
.gitignore = .gitignore
10-
build.cake = build.cake
11-
build.ps1 = build.ps1
10+
azure-pipelines.yml = azure-pipelines.yml
1211
CHANGELOG.md = CHANGELOG.md
1312
GitVersion.yml = GitVersion.yml
1413
LICENSE.md = LICENSE.md

BencodeNET/BencodeNET.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
<PropertyGroup>
1717
<PackageId>BencodeNET</PackageId>
18-
<Version>$(SemVer)</Version>
1918
<Authors>Søren Kruse</Authors>
2019
<Company />
2120
<Product>BencodeNET</Product>
@@ -27,7 +26,7 @@
2726
<RepositoryType>git</RepositoryType>
2827
<PackageReleaseNotes></PackageReleaseNotes>
2928
<PackageTags>bencode;torrent;torrents</PackageTags>
30-
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
29+
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
3130
<IncludeSource>True</IncludeSource>
3231
<IncludeSymbols>True</IncludeSymbols>
3332
</PropertyGroup>
@@ -38,6 +37,7 @@
3837

3938
<!--Dev dependencies -->
4039
<ItemGroup>
40+
<PackageReference Include="GitVersion.MsBuild" Version="5.6.4" PrivateAssets="All" />
4141
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="16.8.55" PrivateAssets="All" />
4242
</ItemGroup>
4343

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BencodeNET
44
==========
55
[![license](https://img.shields.io/badge/license-Unlicense-blue.svg)](https://github.com/Krusen/BencodeNET/blob/master/LICENSE.md)
6-
[![AppVeyor](https://ci.appveyor.com/api/projects/status/pikvrmie3ibsk6pt/branch/master?svg=true)](https://ci.appveyor.com/project/Krusen/bencodenet)
6+
[![Azure Pipelines](https://krusen.visualstudio.com/BencodeNET/_apis/build/status/BencodeNET?branchName=feature%2Fazure-pipelines)](https://krusen.visualstudio.com/BencodeNET/_build?definitionId=5)
77
[![Coverage](https://coveralls.io/repos/github/Krusen/BencodeNET/badge.svg?branch=master)](https://coveralls.io/github/Krusen/BencodeNET?branch=master)
88
[![CodeFactor](https://www.codefactor.io/repository/github/krusen/bencodenet/badge)](https://www.codefactor.io/repository/github/krusen/bencodenet)
99
[![NuGet](https://buildstats.info/nuget/bencodenet?includePreReleases=false)](https://www.nuget.org/packages/BencodeNET/)

azure-pipelines.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
trigger:
7+
- master
8+
9+
pool:
10+
# Windows image required for code coverage -> https://github.com/Microsoft/vstest-docs/blob/master/docs/analyze.md#coverage
11+
vmImage: 'windows-latest'
12+
13+
steps:
14+
- task: DotNetCoreCLI@2
15+
displayName: dotnet restore
16+
inputs:
17+
command: 'restore'
18+
projects: 'BencodeNET.sln'
19+
feedsToUse: 'select'
20+
verbosityRestore: 'Normal'
21+
- task: DotNetCoreCLI@2
22+
displayName: dotnet build
23+
inputs:
24+
command: 'build'
25+
projects: 'BencodeNET.sln'
26+
arguments: '--configuration Release --no-restore'
27+
- task: DotNetCoreCLI@2
28+
displayName: dotnet test
29+
inputs:
30+
command: 'test'
31+
projects: 'BencodeNET.sln'
32+
arguments: '--configuration Release --collect "Code coverage"'
33+
testRunTitle: 'BencodeNET.Tests'
34+
- task: DotNetCoreCLI@2
35+
displayName: dotnet pack
36+
inputs:
37+
command: 'pack'
38+
packagesToPack: 'BencodeNET/*.csproj'
39+
configuration: 'Release'
40+
packDirectory: '$(Pipeline.Workspace)/Packages'
41+
nobuild: true
42+
versioningScheme: 'off'
43+
verbosityPack: 'Normal'
44+
- task: PublishPipelineArtifact@1
45+
displayName: Publish artifacts
46+
inputs:
47+
targetPath: '$(Pipeline.Workspace)\Packages'
48+
artifact: 'Packages'
49+
publishLocation: 'pipeline'

build.cake

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)