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

Commit 0eb188f

Browse files
authored
Set up CI with Azure Pipelines (#2)
1 parent d5d5b55 commit 0eb188f

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

azure-pipelines.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# DotNetCore Restore/Build/Test/Pack/Publish
2+
3+
variables:
4+
BuildConfiguration: Release
5+
6+
trigger:
7+
- master
8+
9+
#pool:
10+
# vmImage: 'ubuntu-latest'
11+
12+
steps:
13+
# Restore
14+
- task: DotNetCoreCLI@2
15+
displayName: Restore
16+
inputs:
17+
command: restore
18+
# Build
19+
- task: DotNetCoreCLI@2
20+
displayName: Build
21+
inputs:
22+
command: build
23+
arguments: '--configuration $(BuildConfiguration)'
24+
# Test
25+
- task: DotNetCoreCLI@2
26+
displayName: Test
27+
inputs:
28+
command: test
29+
projects: '**/*.Tests/*.csproj'
30+
arguments: '--configuration $(BuildConfiguration)'
31+
# Pack
32+
- task: DotNetCoreCLI@2
33+
displayName: Pack
34+
inputs:
35+
command: pack
36+
nobuild: true
37+
# Publish
38+
- task: PublishBuildArtifacts@1
39+
displayName: Publish
40+
inputs:
41+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
42+
ArtifactName: 'NuGet'
43+
publishLocation: 'Container'

0 commit comments

Comments
 (0)