Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Set up CI with Azure Pipelines (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhoek authored Jun 30, 2019
1 parent d5d5b55 commit 0eb188f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# DotNetCore Restore/Build/Test/Pack/Publish

variables:
BuildConfiguration: Release

trigger:
- master

#pool:
# vmImage: 'ubuntu-latest'

steps:
# Restore
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
# Build
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
arguments: '--configuration $(BuildConfiguration)'
# Test
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '**/*.Tests/*.csproj'
arguments: '--configuration $(BuildConfiguration)'
# Pack
- task: DotNetCoreCLI@2
displayName: Pack
inputs:
command: pack
nobuild: true
# Publish
- task: PublishBuildArtifacts@1
displayName: Publish
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'NuGet'
publishLocation: 'Container'

0 comments on commit 0eb188f

Please sign in to comment.