-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
56 lines (52 loc) · 1.39 KB
/
azure-pipelines.yml
File metadata and controls
56 lines (52 loc) · 1.39 KB
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
name: '$(Date:yyyyMMdd)$(Rev:-rr)'
trigger: none
# - master
strategy:
matrix:
Linux:
imageName: 'ubuntu-18.04'
MacOS:
imageName: 'macos-10.14'
Windows:
imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
steps:
- task: UseDotNet@2
displayName: 'Setup SDK'
inputs:
packageType: 'sdk'
version: '3.1.x'
- task: DotNetCoreCLI@2
displayName: 'Restore'
inputs:
command: 'restore'
projects: '**/*.csproj'
feedsToUse: 'select'
vstsFeed: '6ea7f709-397d-481c-a895-bf3cf16ec737'
- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
command: 'build'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'Test'
inputs:
command: 'test'
projects: 'test/**/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'Pack'
condition: and(succeeded(), eq(variables['imageName'], 'vs2017-win2016'))
inputs:
command: 'custom'
projects: 'src/**/*.csproj'
custom: 'pack'
arguments: '--version-suffix CI-$(Build.BuildNumber) -o $(Build.ArtifactStagingDirectory)'
- task: NuGetCommand@2
displayName: 'Push'
condition: and(succeeded(), eq(variables['imageName'], 'vs2017-win2016'))
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '6ea7f709-397d-481c-a895-bf3cf16ec737'