forked from Azure/Industrial-IoT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
72 lines (70 loc) · 1.84 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
pr:
autoCancel: true
drafts: true
branches:
include:
- '*'
trigger:
batch: true
branches:
include:
- main
- releases
- dev/*
- release/*
variables:
iaiStorageAccount: azureiiot
iaiStorageAccountSubscription: azureiiotbak-storage
stages:
- stage: build
displayName: 'Build and Test Code'
jobs:
- template: tools/templates/ci.yml
- template: tools/templates/sdl.yml
- stage: pack
displayName: 'Package and Sign Nuget'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
dependsOn:
- build
jobs:
- template: tools/templates/nuget.yml
parameters:
sign: ${{ startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}
- stage: iiot_deployment
displayName: 'Build Installer'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
dependsOn:
- build
jobs:
- template: tools/templates/iiot_deployment_win.yml
parameters:
sign: ${{ startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}
- template: tools/templates/iiot_deployment_linux.yml
- template: tools/templates/iiot_deployment_mac.yml
- stage: images
displayName: 'Build Images'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
dependsOn:
- build
jobs:
- template: tools/templates/acrbuild.yml
- stage: coverage
displayName: 'Code Coverage'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
dependsOn:
- build
jobs:
- template: tools/templates/cc.yml
- stage: e2e_tests
displayName: 'Triggering E2E tests'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
dependsOn:
- build
- pack
- iiot_deployment
- images
- coverage
jobs:
- template: tools/templates/e2e_tests.yml
parameters:
branchName: ${{ replace(variables['Build.SourceBranch'], 'refs/heads/', '') }}