-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
100 lines (98 loc) · 3.21 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
trigger:
branches:
include:
- 'master'
tags:
include:
- '*'
pr:
autoCancel: false
branches:
include:
- '*'
resources:
repositories:
- repository: PSModulePublisher
type: github
name: theohbrothers/PSModulePublisher
endpoint: theohbrothers # Check for your 'Type: Github' connection under 'Project Settings' > 'Service connections'
ref: refs/tags/v0.4.0
- repository: PSRepositoryReleaseManager
type: github
name: theohbrothers/PSRepositoryReleaseManager
endpoint: theohbrothers # Check for your 'Type: Github' connection under 'Project Settings' > 'Service connections'
ref: refs/tags/v0.7.0
stages:
- stage: build_test
displayName: Build, Test
jobs:
- job: windows_pwsh
displayName: '[Windows] PowerShell Core'
pool:
vmImage: windows-2019
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/continuous-build.yml@PSModulePublisher
- job: windows_powershell_5_1
displayName: '[Windows] PowerShell 5.1'
pool:
vmImage: windows-2019
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/continuous-build.yml@PSModulePublisher
- job: linux
displayName: '[Linux] PowerShell Core'
pool:
vmImage: ubuntu-18.04
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/linux/continuous-build.yml@PSModulePublisher
- job: linux_container
displayName: '[Linux] [Container] PowerShell'
pool:
vmImage: ubuntu-18.04
strategy:
matrix:
7.1.3:
containerImage: theohbrothers/docker-powershell:7.1.3-ubuntu-18.04-20210316-git
7.0.3:
containerImage: theohbrothers/docker-powershell:7.0.3-ubuntu-18.04-20201027-git
6.2.4:
containerImage: theohbrothers/docker-powershell:6.2.4-ubuntu-18.04-git
6.1.3:
containerImage: theohbrothers/docker-powershell:6.1.3-ubuntu-18.04-git
container: $[ variables['containerImage'] ]
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/linux/continuous-build.yml@PSModulePublisher
- stage: publish
displayName: Publish
dependsOn: build_test
jobs:
- job: windows_powershell_5_1
displayName: '[Windows] PowerShell 5.1'
pool:
vmImage: windows-2019
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/continuous-build.yml@PSModulePublisher
- template: templates/azure-pipelines/entrypoint/windows/powershell/publish.yml@PSModulePublisher
- stage: release
displayName: Release
dependsOn: publish
jobs:
- job: linux_container
displayName: '[Linux] [Container] PowerShell Core'
pool:
vmImage: ubuntu-18.04
container: theohbrothers/docker-powershell:7.1.3-ubuntu-18.04-20210316-git
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/generate.yml@PSRepositoryReleaseManager
- template: templates/azure-pipelines/entrypoint/release.yml@PSRepositoryReleaseManager