-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
49 lines (47 loc) · 1.23 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
pool:
name: Hosted VS2017
variables:
- group: api-keys
stages:
- stage: build
jobs:
- job: BuildModule
steps:
- task: PowerShell@2
displayName: Prerequisites
inputs:
pwsh: true
targetType: filePath
filePath: './build/vsts-prerequisites.ps1'
- task: PowerShell@2
displayName: Validate
inputs:
pwsh: true
targetType: filePath
filePath: './build/vsts-validate.ps1'
- task: PublishTestResults@2
displayName: 'Publish Test Results **/TEST-*.xml'
inputs:
testResultsFormat: NUnit
condition: always()
- stage: deploy
dependsOn: build
condition: and(succeeded('build'), eq(variables['build.sourceBranch'], 'refs/heads/mimir'))
jobs:
- job: ReleaseToTheWild
steps:
- task: PowerShell@2
displayName: Prerequisites
inputs:
pwsh: true
targetType: filePath
filePath: './build/vsts-prerequisites.ps1'
- task: PowerShell@2
displayName: Deploy
env:
ApiKey: $(ApiKey)
inputs:
pwsh: true
targetType: filePath
filePath: './build/vsts-build.ps1'
arguments: -ApiKey $(ApiKey)