forked from SalesforceFoundation/EDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulusci.yml
234 lines (209 loc) · 7.63 KB
/
cumulusci.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
project:
name: HEDAP
package:
name: HEDA
namespace: hed
api_version: 35.0
install_class: STG_InstallScript
git:
prefix_release: rel/
tasks:
update_admin_profile:
class_path: tasks.salesforce.UpdateAdminProfile
deploy_dev_config:
description: Deploys configuration for Development. Assigns page layouts, compact layouts, and sets tab visibilities. Record type visibilities are set the update_admin_profile task
class_path: cumulusci.tasks.salesforce.DeployNamespacedBundles
options:
path: dev_config/src
namespace_token: '%%%NAMESPACE%%%'
filename_token: '___NAMESPACE___'
delete_dev_config:
description: Removes Development configuration. Sets page layouts, compact layouts to system defaults. Removes record type visibilites.
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: dev_config/delete
download_browser_tests:
description: Downloads the browser tests from the HEDA-Browser-Tests Github repository.
class_path: cumulusci.tasks.util.DownloadZip
options:
url: 'https://github.com/SalesforceFoundation/HEDA-Browser-Tests/archive/master.zip'
dir: browser_tests
subfolder: HEDA-Browser-Tests-master
browsertests_firefox:
description: Runs the Ruby/Watir browser tests in the browsertests folder using Firefox
class_path: cumulusci.tasks.command.SalesforceBrowserTest
options:
command: 'cd browser_tests; bundle install --quiet; bundle exec cucumber -c features/ --tags ~@flaky --tags ~@chrome'
dir: '.'
env:
SELENIUM_BROWSER: firefox
browsertests_chrome:
description: Runs the Ruby/Watir browser tests in the browsertests folder using Chrome
class_path: cumulusci.tasks.command.SalesforceBrowserTest
options:
command: 'cd browser_tests; bundle install --quiet; bundle exec cucumber -c features/ --tags ~@firefox --tags ~@flaky'
dir: '.'
env:
SELENIUM_BROWSER: chrome
browsertests_unmanaged_firefox:
description: Runs the Ruby/Watir browser tests in the browsertests folder against unmanaged metadata in Firefox
class_path: cumulusci.tasks.command.SalesforceBrowserTest
options:
command: 'cd browser_tests; bundle install --quiet; bundle exec cucumber -c features/ --tags ~@flaky --tags ~@chrome'
dir: '.'
env:
SELENIUM_BROWSER: firefox
TARGET_ORG: unmanaged
browsertests_unmanaged_chrome:
description: Runs the Ruby/Watir browser tests in the browsertests folder against unmanaged metadata in Chrome
class_path: cumulusci.tasks.command.SalesforceBrowserTest
options:
command: 'cd browser_tests; bundle install --quiet; bundle exec cucumber -c features/ --tags ~@firefox --tags ~@flaky'
dir: '.'
env:
SELENIUM_BROWSER: chrome
TARGET_ORG: unmanaged
mockaroo_contacts:
class_path: cumulusci_mockaroo.tasks.MockarooToSql
options:
schema: 'HEDA: Contacts'
count: 10
database_url: 'sqlite:///testdata.db'
table: 'Contact'
boolean_fields:
- FERPA__c
- Financial_Aid_Applicant__c
- HIPAA__C
- Military_Service__c
flows:
hedaectomy:
description: Remove all the HEDA metadata in the target Org
tasks:
1:
task: delete_dev_config
2:
task: uninstall_packaged
ci_feature:
description: Deploys the unmanaged package metadata and all dependencies to the target org and runs tests without collecting debug logs
tasks:
2:
task: deploy_pre
3:
task: update_dependencies
5:
task: None
6.1:
task: update_admin_profile
ci_master:
tasks:
9:
options:
skip_record_types: True
ci_beta:
tasks:
6:
options:
managed: True
ci_beta_install:
tasks:
0.1:
task: delete_dev_config
options:
ignore_failure: True
6:
options:
managed: True
7:
task: deploy_dev_config
options:
managed: True
dev_org:
tasks:
8:
task: deploy_dev_config
install_beta:
tasks:
5:
options:
managed: True
6:
task: deploy_dev_config
options:
managed: True
release_beta:
tasks:
5:
task: mrbelvedere_publish
options:
tag: ^^github_release.tag_name
browsertests_firefox:
description: Runs the browser tests locally against a managed package in Firefox
tasks:
1:
task: download_browser_tests
2:
task: browsertests_firefox
browsertests_chrome:
description: Runs the browser tests locally against a managed package in Chrome
tasks:
1:
task: download_browser_tests
2:
task: browsertests_chrome
browsertests_unmanaged_firefox:
description: Runs the browser tests via SauceLabs against the unmanaged metadata in Firefox
tasks:
1:
task: download_browser_tests
2:
task: browsertests_unmanaged_firefox
browsertests_unmanaged_chrome:
description: Runs the browser tests via SauceLabs against the unmanaged metadata in Chrome
tasks:
1:
task: download_browser_tests
2:
task: browsertests_unmanaged_chrome
ci_browsertests_firefox:
description: Runs the browser tests via SauceLabs against a managed package in Firefox
tasks:
1:
task: download_browser_tests
2:
task: browsertests_firefox
options:
use_saucelabs: True
ci_browsertests_chrome:
description: Runs the browser tests via SauceLabs against a managed package in Chrome
tasks:
1:
task: download_browser_tests
2:
task: browsertests_chrome
options:
use_saucelabs: True
ci_browsertests_unmanaged_firefox:
description: Runs the browser tests via SauceLabs against the unmanaged metadata in Firefox
tasks:
1:
task: download_browser_tests
2:
task: browsertests_unmanaged_firefox
options:
use_saucelabs: True
ci_browsertests_unmanaged_chrome:
description: Runs the browser tests via SauceLabs against the unmanaged metadata in Chrome
tasks:
1:
task: download_browser_tests
2:
task: browsertests_unmanaged_chrome
options:
use_saucelabs: True
services:
mockaroo:
description: Configure connection for Mockaroo tasks
attributes:
key:
description: The API key for Mockaroo
required: True