Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #5

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
trigger:
- master

pool:
vmImage: 'vs2017-win2016'

variables:
buildConfiguration: 'Release'

steps:
- script: |
dotnet build --configuration $(buildConfiguration)
dotnet pack --include-symbols
displayName: 'dotnet build $(buildConfiguration)'

- task: VSTest@2
displayName: 'dotnet test'
inputs:
testSelector: testAssemblies
testAssemblyVer2: |
**\*Test*.dll
!**\*Microsoft.VisualStudio.TestPlatform*
!**\obj\**
codeCoverageEnabled: true
otherConsoleOptions: '/platform:x64 /Framework:.NETCoreApp,Version=v2.2 /logger:console;verbosity="normal" '

- task: CopyFiles@2
displayName: 'copy nuget packages'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: |
**/*.nupkg
TargetFolder: '$(Build.ArtifactStagingDirectory)'

- task: PublishBuildArtifacts@1
displayName: 'publish artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'nupkg'
15 changes: 8 additions & 7 deletions src/Kavod.Vba.Compression/Kavod.Vba.Compression.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<Copyright>Copyright © 2016</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Copyright>Copyright © 2016</Copyright>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<Authors>Ross Knudsen</Authors>
<Company />
<Description>VBA uses a compression algorithm when packaging code into a VBA Project within a Microsoft Office file. The specification can be found here: https://msdn.microsoft.com/en-us/library/dd923471(v=office.12).aspx</Description>
<Description>
VBA uses a compression algorithm when packaging code into a VBA Project within a Microsoft Office file.
The specification can be found here: https://msdn.microsoft.com/en-us/library/dd923471(v=office.12).aspx
</Description>
<RepositoryUrl>https://github.com/rossknudsen/Kavod.Vba.Compression</RepositoryUrl>
<AssemblyVersion>0.0.2.0</AssemblyVersion>
<FileVersion>0.0.2.0</FileVersion>
<PackageProjectUrl>https://github.com/rossknudsen/Kavod.Vba.Compression</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/rossknudsen/Kavod.Vba.Compression/master/LICENSE</PackageLicenseUrl>
<Version>0.0.2-alpha</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<VersionPrefix>0.0.2</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Expand Down