-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
58 lines (46 loc) · 1.46 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
variables:
major: 3
minor: 0
patch: $[counter(format('major {0} minor {1}', variables['major'], variables['minor']), 5)]
name: $[format('{0}.{1}.{2}', variables['major'], variables['minor'], variables['patch'])]
resources:
- repo: self
clean: true
trigger:
- main
phases:
- phase: Phase
displayName: Agent
queue:
name: Private Linux
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet tooling'
- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
projects: '**/*.csproj'
arguments: '--configuration Release'
- task: DotNetCoreCLI@2
displayName: 'Run unit tests'
inputs:
command: test
nobuild: true
projects: '**/*.UnitTests.csproj'
- task: DotNetCoreCLI@2
displayName: 'dotnet pack'
inputs:
command: pack
projects: '**/GherkinSpec.TestAdapter.csproj'
configuration: Release
nobuild: true
versioningScheme: byBuildNumber
verbosityPack: Normal
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: 'GivePenny Nuget'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/GivePenny.GherkinSpec.TestAdapter.*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
versioningScheme: byBuildNumber