-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
122 lines (114 loc) · 3.35 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
#pool:
#vmImage: ubuntu-latest
trigger:
- develop
- main
stages:
#DotNet Library Intregration Test
- template: dotnet/stages.yml
parameters:
shouldPublish: eq(variables['Build.SourceBranch'], 'refs/heads/main')
build: DotNet_Development
projectRoot: tests/integration/
projectSrc: src/dotnet/library
artifactNamePrefix: DotNet
environments:
- env: env
name: DotNet_Development
#DotNet Tool Intregration Test
- template: dotnet/stages.yml
parameters:
shouldPublish: eq(variables['Build.SourceBranch'], 'refs/heads/main')
build: DotNetTool_Development
projectRoot: tests/integration/
projectSrc: src/dotnet/tool
artifactNamePrefix: DotNetTool
buildParameters:
- '-p:PackAsTool=true'
- '-p:ToolCommandName=dotnet-tool'
skipTests: true
environments:
- env: env
name: DotNetTool_Development
#DotNet Web Intregration Test
- template: dotnetweb/stages.yml
parameters:
system: test
suffix: do
devopsOrg: wcom-public
build: DotNetWeb_Development
projectRoot: tests/integration/
projectSrc: src/dotnet/web
shouldDeploy: eq(variables['Build.SourceBranch'], 'refs/heads/main')
artifactNamePrefix: DotNetWeb
environments:
- env: env
name: DotNetWeb_Development
#SQL Intregration Test
- template: sql/stages.yml
parameters:
system: test
suffix: do
pool:
vmImage: windows-latest
devopsOrg: wcom-public
projectRoot: tests/integration/
projectSrc: src/sql
serverName: 'devops'
build: SQL_Development
shouldDeploy: eq(variables['Build.SourceBranch'], 'refs/heads/main')
shouldPublish: eq(variables['Build.SourceBranch'], 'refs/heads/main')
artifactNamePrefix: SQL
databases:
- name: DevOps
environments:
- env: env
name: SQL_Development
envPool:
vmImage: macOS-latest
#Bicep Intregration Test
- template: bicep/stages.yml
parameters:
system: test
devopsOrg: wcom-public
suffix: do
build: Bicep_Development
artifactNamePrefix: Bicep
projectRoot: tests/integration/src/Bicep
validateBicep: eq(variables['Build.SourceBranch'], 'refs/heads/main')
shouldDeploy: eq(variables['Build.SourceBranch'], 'refs/heads/main')
environments:
- env: dev
name: Bicep_Development
#Docs Intregration Test
- template: docs/stages.yml
parameters:
system: test
suffix: do
devopsOrg: wcom-public
build: Docs_Development
artifactNamePrefix: Docs
sites:
- name: 'docs'
projectRoot: tests/integration/src/docs
preBuildScript:
scriptType: pscore
targetType: inline
pwsh: true
script: |
Get-ChildItem -Directory | `
Get-ChildItem -Filter README.md -File | `
ForEach-Object {
[string] $TargetDirectory = Join-Path 'tests' 'integration' 'src' 'docs' 'input' 'docs' $_.Directory.Name
[string] $TargetFile = Join-Path $TargetDirectory 'index.md'
if (!(Test-Path $TargetDirectory))
{
New-Item -ItemType Directory -Path $TargetDirectory
}
Copy-Item $_.FullName $TargetFile
}
shouldDeploy: eq(variables['Build.SourceBranch'], 'refs/heads/main')
environments:
- env: dev
name: Docs_Development