-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
81 lines (67 loc) · 2.09 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'vs2017-win2016'
variables:
solution: '**/BHoM_Installer.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- checkout: self
persistCredentials: true
- task: CopyFiles@2
displayName: 'Move Cloned Files to Correct Toolkit Folder'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '**'
TargetFolder: '$(Build.SourcesDirectory)/BHoM_Installer'
- task: DeleteFiles@1
displayName: 'Clean Up After Moving Cloned Files'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: 'BHoM_Installer.sln'
- task: NuGetToolInstaller@1
- task: PowerShell@2
displayName: 'Clone and Build All Required Repos'
inputs:
filePath: 'CloneAndBuildAllRequiredRepos.ps1'
env:
ReleaseType: $(ReleaseType)
PatchVersion: $(PatchVersion)
Version: $(Version)
- task: NuGetCommand@2
displayName: 'Restore NuGets for Primary Solution'
inputs:
restoreSolution: '$(solution)'
- task: PowerShell@2
displayName: 'Get Date Stamp for Alpha Patch Versioning'
inputs:
targetType: 'inline'
script: |
$dateStr = (Get-Date).ToString("yyMMdd")
Write-Host "##vso[task.setvariable variable=dateVersion;]$dateStr"
- task: PowerShell@2
displayName: 'Build Primary Solution'
env:
ReleaseType: $(ReleaseType)
PatchVersion: $(PatchVersion)
Version: $(Version)
inputs:
filePath: 'BuildSolution.ps1'
- task: CopyFiles@2
displayName: 'Copy .msi into Artifact Staging Area'
inputs:
SourceFolder: '$(Build.SourcesDirectory)/BHoM_Installer/Build/'
Contents: '**/**.msi'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
- task: PublishBuildArtifacts@1
displayName: 'Publish .msi'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'BHoM_Installer'
publishLocation: 'Container'