From a3cd655de69966950b1b365dc524ed99d07fdbe4 Mon Sep 17 00:00:00 2001 From: Jakub Bartkowiak Date: Sun, 26 May 2019 15:19:28 +0200 Subject: [PATCH 1/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..f91f0d1 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# .NET Desktop +# Build and run tests for .NET Desktop or Windows classic desktop solutions. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@0 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From bc0cfe03f36f6fc2c8e6d363523195baa5963c8c Mon Sep 17 00:00:00 2001 From: Jakub Bartkowiak Date: Sun, 26 May 2019 15:38:34 +0200 Subject: [PATCH 2/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f91f0d1..9b5dad2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,10 @@ steps: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' -- task: VSTest@2 +- task: NuGetCommand@2 inputs: - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' + command: 'pack' + feedsToUse: 'select' + packagesToPack: 'BACnet.csproj' + versioningScheme: byBuildNumber + includeSymbols: true \ No newline at end of file From 85ad89856f544ac4a38517d7bc27be4258c6fd44 Mon Sep 17 00:00:00 2001 From: Jakub Bartkowiak Date: Mon, 27 May 2019 00:37:38 +0200 Subject: [PATCH 3/3] chore: add azure pipelines badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 66ab4d3..6e1b6bc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/ela-compil/BACnet/master/MIT_license.txt) [![NuGet version](https://badge.fury.io/nu/bacnet.svg)](https://www.nuget.org/packages/BACnet) +[![Build Status](https://dev.azure.com/ela-compil/BACnet/_apis/build/status/Build%20release?branchName=master)](https://dev.azure.com/ela-compil/BACnet/_build/latest?definitionId=1&branchName=master) [![Donate](https://img.shields.io/badge/%24-donate-ff00ff.svg)](https://www.paypal.me/JakubBartkowiak) This library was originaly developed by Morten Kvistgaard with a lot of contribution from F. Chaxel. It is used as core library in [YABE (Yet Another BACnet Explore)](https://sourceforge.net/projects/yetanotherbacnetexplorer/). It has been forked here from SourceForge SVN source, splitted into separate repositories and made available to download from Nuget.