-
Notifications
You must be signed in to change notification settings - Fork 5
/
NugetPackages-Azure.yml
54 lines (48 loc) · 1.24 KB
/
NugetPackages-Azure.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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- master
- v*
paths:
include:
- src
variables:
buildConfiguration: 'Release'
pool:
vmImage: windows-latest
steps:
- checkout: self
fetchDepth: 0
- task: NuGetToolInstaller@1
inputs:
versionSpec: '>=5.0.0'
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/XrmFramework.sln'
feedsToUse: 'select'
- task: MSBuild@1
inputs:
solution: '**/XrmFramework.sln'
configuration: '$(buildConfiguration)'
msbuildArguments: '/p:PublicRelease=true'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: 'test'
projects: '**/XrmFramework.sln'
workingDirectory: 'src'
- task: CopyFiles@2
inputs:
SourceFolder: 'src/GeneratedNuGetPackages/$(buildConfiguration)/'
Contents: '**'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(build.artifactstagingdirectory)'
artifact: 'Packages'
publishLocation: 'pipeline'