-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.tests.yml
154 lines (141 loc) · 6.37 KB
/
azure-pipelines.tests.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
jobs:
- template: ../../azure-pipelines/jobs/lock.yml
parameters:
jobName: output_mapping_lock
lockName: output-mapping-lock
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: cs
dependsOn: [output_mapping_lock]
displayName: Code Check
serviceName: dev-output-mapping
testCommand: 'composer install && composer check'
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_unitTests
dependsOn: [cs]
displayName: General Tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite general-tests'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
BIGQUERY_STORAGE_API_URL: $(OUTPUT_MAPPING__BIGQUERY_STORAGE_API_URL)
BIGQUERY_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__BIGQUERY_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_mainWriter1
dependsOn: [ cs ]
displayName: First Main Writer Tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite main-writer-tests-1'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_mainWriter2
dependsOn: [ cs ]
displayName: Second Main Writer Tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite main-writer-tests-2'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_workspaceWriter
dependsOn: [ cs ]
displayName: Workspace Writer Tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite workspace-writer-tests'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_redshiftWriter
dependsOn: [ cs ]
displayName: Redshift Writer Tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite redshift-writer-tests'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_tableWriter_synapse
condition: eq(variables.RUN_SYNAPSE_TESTS, '1')
dependsOn: [cs]
displayName: Synapse Writer Tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite synapse-writer-tests'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AZURE)
SYNAPSE_STORAGE_API_URL: $(STORAGE_API_URL_AZURE)
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_AZURE)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AZURE)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_tableWriter_nativeTypes
dependsOn: [ cs ]
displayName: Native types tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite native-types'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING_NATIVE_TYPES__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_tableWriter_newNativeTypes
dependsOn: [ cs ]
displayName: NEW Native types tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite new-native-types'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING_NEW_NATIVE_TYPES__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)
- template: ../../azure-pipelines/jobs/run-tests.yml
parameters:
jobName: tests_php81_tableWriter_slice
dependsOn: [ cs ]
displayName: Slice feature tests
serviceName: dev-output-mapping
testCommand: 'composer install && vendor/bin/phpunit --testsuite slice'
variables:
STORAGE_API_URL: $(STORAGE_API_URL_AWS)
RUN_SYNAPSE_TESTS: 0
secrets:
STORAGE_API_TOKEN: $(OUTPUT_MAPPING_SLICE_FEATURE__STORAGE_API_TOKEN_AWS)
STORAGE_API_TOKEN_MASTER: $(OUTPUT_MAPPING_SLICE_FEATURE__STORAGE_API_TOKEN_MASTER_AWS)
SYNAPSE_STORAGE_API_TOKEN: $(OUTPUT_MAPPING__SYNAPSE_STORAGE_API_TOKEN)