-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-develop-ci-pipeline.yml
61 lines (51 loc) · 1.75 KB
/
build-develop-ci-pipeline.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
59
60
61
# Develop branch CI Pipeline
name: DevelopCI_$(Year:yyyy).$(Month).$(DayOfMonth).$(Rev:r)
trigger:
- develop
variables:
buildConfiguration: 'Release'
nugetPackageId: 'Tinyman.Develop.CI'
pool:
vmImage: ubuntu-latest
steps:
- task: UseDotNet@2
displayName: 'Install .Net Core SDK'
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: bleddynrichards.Assembly-Info-Task.Assembly-Info-NetCore.Assembly-Info-NetCore@2
displayName: 'Update assembly info'
inputs:
Path: '$(Build.SourcesDirectory)/src/'
FileNames: 'Tinyman/Tinyman.csproj'
InsertAttributes: true
WriteBOM: true
FileVersionNumber: '$(Build.BuildNumber)'
InformationalVersion: '$(Build.BuildNumber)'
LogLevel: 'verbose'
FailOnWarning: false
DisableTelemetry: true
- task: DotNetCoreCLI@2
displayName: 'Build Tinyman .NET SDK'
inputs:
command: 'build'
projects: 'src/Tinyman/Tinyman.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Test Tinyman .NET SDK'
inputs:
command: 'test'
projects: 'test/Tinyman.UnitTest/Tinyman.UnitTest.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Pack Tinyman .NET SDK Nuget package'
inputs:
command: 'custom'
custom: 'pack'
arguments: '$(Build.SourcesDirectory)/src/Tinyman/Tinyman.csproj --output $(Build.ArtifactStagingDirectory) --no-build /p:Configuration=$(buildConfiguration) /p:PackageID=$(nugetPackageId) /p:PackageVersion=$(AssemblyInfo.FileVersion) --verbosity Detailed'
- task: PublishBuildArtifacts@1
displayName: 'Publish Tinyman .NET SDK artifact'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'