-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
116 lines (108 loc) · 3.84 KB
/
azure-pipelines.yml
File metadata and controls
116 lines (108 loc) · 3.84 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Standard CI build - which build, test and publish artifact
trigger:
branches:
include:
- master
paths:
exclude:
- azure-pipelines-gc.yml
pr: none
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
feedName: 'AspNetCoreIdentityFramework'
azureDevOpsProjectName: 'AspNetCoreIdentityFramework'
steps:
# Update AssemblyInfo Files
- task: UseGitVersion@5
displayName: 'Git Version updates AssemblyInfo for Globe.Identity'
inputs:
versionSpec: '5.x'
updateAssemblyInfo: true
updateAssemblyInfoFilename: '$(system.defaultworkingdirectory)\Globe.Identity\Properties\AssemblyInfo.cs'
- task: UseGitVersion@5
displayName: 'Git Version updates AssemblyInfo for Globe.BusinessLogic'
inputs:
versionSpec: '5.x'
updateAssemblyInfo: true
updateAssemblyInfoFilename: '$(system.defaultworkingdirectory)\Globe.BusinessLogic\Properties\AssemblyInfo.cs'
- task: UseGitVersion@5
displayName: 'Git Version updates AssemblyInfo for Globe.Infrastructure.EFCore'
inputs:
versionSpec: '5.x'
updateAssemblyInfo: true
updateAssemblyInfoFilename: '$(system.defaultworkingdirectory)\Globe.Infrastructure.EFCore\Properties\AssemblyInfo.cs'
- task: UseGitVersion@5
displayName: 'Git Version updates AssemblyInfo for Globe.Tests'
inputs:
versionSpec: '5.x'
updateAssemblyInfo: true
updateAssemblyInfoFilename: '$(system.defaultworkingdirectory)\Globe.Tests\Properties\AssemblyInfo.cs'
# Build Solution
- task: DotNetCoreCLI@2
displayName: Restore packages
inputs:
command: restore
projects: '**/*.sln'
versioningScheme: byBuildNumber
- task: DotNetCoreCLI@2
displayName: 'Build AspNetCoreIdentityFramework Solution'
inputs:
command: 'build'
arguments: '--configuration $(BuildConfiguration) /p:Version=$(GitVersion.NuGetVersion)'
projects: AspNetCoreIdentityFramework.sln
versioningScheme: byBuildNumber
# Test Projects
- task: VSTest@2
displayName: 'Run all Tests'
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\Globe.*.Tests.dll
!**\Globe.Identity.MultiTenant.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
# Publish Artifacts
- task: DotNetCoreCLI@2
displayName: 'Pack Globe.Identity'
inputs:
command: 'pack'
arguments: --output $(build.artifactstagingdirectory) --configuration $(buildConfiguration)
packagesToPack: 'Globe.Identity/Globe.Identity.csproj'
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersion
- task: DotNetCoreCLI@2
displayName: 'Pack Globe.Infrastructure.EFCore'
inputs:
command: 'pack'
arguments: --output $(build.artifactstagingdirectory) --configuration $(buildConfiguration)
packagesToPack: 'Globe.Infrastructure.EFCore/Globe.Infrastructure.EFCore.csproj'
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersion
- task: DotNetCoreCLI@2
displayName: 'Pack Globe.BusinessLogic'
inputs:
command: 'pack'
arguments: --output $(build.artifactstagingdirectory) --configuration $(buildConfiguration)
packagesToPack: 'Globe.BusinessLogic/Globe.BusinessLogic.csproj'
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersion
- task: DotNetCoreCLI@2
displayName: 'Pack Globe.Tests'
inputs:
command: 'pack'
verbosityPack: Diagnostic
arguments: --output $(build.artifactstagingdirectory) --configuration $(buildConfiguration)
packagesToPack: 'Globe.Tests/Globe.Tests.csproj'
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersion
- task: DotNetCoreCLI@2
displayName: 'Push artifacts in $(azureDevOpsProjectName)/$(feedName) feed'
inputs:
command: 'push'
nuGetFeedType: 'internal'
packagesToPush: '$(build.artifactStagingDirectory)/*.nupkg'
publishVstsFeed: '$(azureDevOpsProjectName)/$(feedName)'
versioningScheme: byBuildNumber