-
Notifications
You must be signed in to change notification settings - Fork 29
/
azure-pipelines.yml
94 lines (83 loc) · 2.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
name: $(Date:yyyyMMdd)$(Rev:.r)
trigger:
- main
- synapse
- refs/heads/synapse
pr:
- main
- synapse
variables:
buildConfiguration: 'Release'
buildPlatform: 'x64'
major: 0
minor: 6
patch: 2
buildnum: $[counter(format('{0}.{1}.{2}', variables['major'], variables['minor'], variables['patch']), 1)]
version: $(major).$(minor).$(patch).$(buildnum)
fhirToDatalakeInstanceName: testfhirtodatalake
dicomToDatalakeInstanceName: testdicomtodatalake
synapseWorkspaceName: testcisynapseworkspace
fhirToDatalakeStorageAccountName: testfhirtodoglaw6s6zpluk
dicomToDatalakeStorageAccountName: testdicomtozrv3ddtm6vwkw
imageName: healthdatatodatalake
stages:
- stage: Build
jobs:
- job: BuildFhirToCdm
pool:
vmImage: 'windows-latest'
steps:
- template: FhirToCdm/build.yml
- job: BuildFhirToDataLake
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: FhirToDataLake/azurepipelines/ci.yml
- stage: OverallTest
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
jobs:
- job: PrepareTestEnvironment
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: FhirToDataLake/azurepipelines/OverallTest/set-environment.yml
- job: RunFhirToSynapseOverallTest
dependsOn: PrepareTestEnvironment
condition: succeeded()
pool:
vmImage: 'windows-latest'
steps:
- template: FhirToDataLake/azurepipelines/OverallTest/fhirtosynapse-e2e-test.yml
- job: RunDicomToSynapseOverallTest
dependsOn: PrepareTestEnvironment
condition: succeeded()
pool:
vmImage: 'windows-latest'
steps:
- template: FhirToDataLake/azurepipelines/OverallTest/dicomtosynapse-e2e-test.yml
- job: CleanTestEnvironment
dependsOn:
- RunFhirToSynapseOverallTest
- RunDicomToSynapseOverallTest
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: FhirToDataLake/azurepipelines/OverallTest/clean-environment.yml
- stage: Release
condition: succeeded()
pool:
vmImage: 'windows-latest'
jobs:
- job: PackNugetPackages
steps:
- template: FhirToDataLake/azurepipelines/pack-nugets.yml
- job: PublishFhirToCdm
dependsOn: PackNugetPackages
condition: succeeded()
steps:
- template: FhirToCdm/publish.yml
- job: PublishArtifactsToGitHub
dependsOn: PublishFhirToCdm
condition: succeeded()
steps:
- template: publish.yml