-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
40 lines (32 loc) · 1014 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# trigger:
# - master
pool:
vmImage: "vs2017-win2016"
# container: mcr.microsoft.com/dotnet/core/sdk:2.2
# variables:
# DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- script: |
dotnet build ./source/ApiChassi/ApiChassi.sln
displayName: "Build"
- script: |
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover ./source/ApiChassi/ApiChassi.sln
displayName: "Unit Test"
- task: NuGetToolInstaller@1
inputs:
versionSpec:
- task: NuGetCommand@2
inputs:
command: 'pack'
packagesToPack: './.nuget/XopzApiTemplate.nuspec'
versioningScheme: 'byPrereleaseNumber'
majorVersion: '0'
minorVersion: '0'
patchVersion: '1'
basePath: '.'
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'XopzTeamNugetServiceConnection'