-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
97 lines (95 loc) · 3.03 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
trigger:
branches:
include:
- master
tags:
include:
- '*'
pr:
autoCancel: false
branches:
include:
- master
resources:
repositories:
- repository: PSModulePublisher
type: github
name: theohbrothers/PSModulePublisher
endpoint: startersclan # Check for your 'Type: Github' connection under 'Project Settings' > 'Service connections'
ref: refs/tags/v0.11.0
- repository: PSRepositoryReleaseManager
type: github
name: theohbrothers/PSRepositoryReleaseManager
endpoint: startersclan
ref: refs/tags/v0.17.1
stages:
- stage: build_test
displayName: Build, Test
jobs:
- job: windows_powershell_core
displayName: '[Windows] PowerShell Core'
pool:
vmImage: windows-2022
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/build-test.yml@PSModulePublisher
- job: linux_container_powershell_core
displayName: '[Linux] [Container] PowerShell'
pool:
vmImage: ubuntu-22.04
strategy:
matrix:
7.4.2:
containerImage: joeltimothyoh/powershell:7.4.2-ubuntu-22.04-git-sudo
7.3.9:
containerImage: joeltimothyoh/powershell:7.3.9-ubuntu-22.04-git-sudo
7.2.2:
containerImage: joeltimothyoh/powershell:7.2.2-ubuntu-20.04-git-sudo
7.1.5:
containerImage: joeltimothyoh/powershell:7.1.5-ubuntu-20.04-git-sudo
7.0.3:
containerImage: joeltimothyoh/powershell:7.0.3-ubuntu-18.04-git-sudo
6.2.4:
containerImage: joeltimothyoh/powershell:6.2.4-ubuntu-18.04-git-sudo
6.1.3:
containerImage: joeltimothyoh/powershell:6.1.3-ubuntu-18.04-git-sudo
container: $[ variables['containerImage'] ]
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/linux/build-test.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/build-test.yml@PSModulePublisher
- stage: build_publish
displayName: Build, Publish
dependsOn: build_test
jobs:
- job: windows_powershell_core
displayName: '[Windows] PowerShell Core'
pool:
vmImage: windows-2022
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/build-publish.yml@PSModulePublisher
- stage: release
displayName: Release
dependsOn: build_publish
jobs:
- job: linux_container_powershell_core
displayName: '[Linux] [Container] PowerShell Core'
pool:
vmImage: ubuntu-22.04
container: theohbrothers/docker-powershell:7.2-ubuntu-22.04-git
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/generate.yml@PSRepositoryReleaseManager
- template: templates/azure-pipelines/entrypoint/release.yml@PSRepositoryReleaseManager