forked from SalesforceFoundation/EDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulusci.yml
332 lines (301 loc) · 11.6 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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
minimum_cumulusci_version: 3.5.0
project:
name: EDA
package:
name: EDA
namespace: hed
api_version: 45.0
install_class: STG_InstallScript
git:
prefix_release: rel/
repo_url: https://github.com/SalesforceFoundation/EDA
apexdoc:
homepage: ApexDocContent/homepage.htm
banner: ApexDocContent/projectheader.htm
branch: gh-pages
repo_dir: ApexDocumentation
sources:
latest_release:
github: https://github.com/SalesforceFoundation/EDA
release: latest
tasks:
deploy_dev_config:
description: Deploys configuration for Development. Assigns page layouts, compact layouts, and sets tab visibilities. Record type visibilities are set in the update_admin_profile task.
class_path: cumulusci.tasks.salesforce.Deploy
options:
namespace_inject: $project_config.project__package__namespace
path: unpackaged/config/dev
unmanaged: True
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: unpackaged/config/dev_delete
deploy_einstein_templates:
group: 'EDA: Einstein Templates'
description: Deploys Einstein Analytics Templates
class_path: cumulusci.tasks.salesforce.Deploy
ui_options:
name: Deploy Einstein Analytics Templates
options:
path: unpackaged/config/analytics
namespace_inject: $project_config.project__package__namespace
unmanaged: False
deploy_encryption_permset:
group: 'Shield Platform Encryption'
description: Deploys "Manage Encryption Keys" permission set.
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/spe
namespace_inject: $project_config.project__package__namespace
assign_encryption_permset:
group: 'Shield Platform Encryption'
description: Assigns the Encryption permission set to the current user for Shield Platform Encryption testing.
class_path: cumulusci.tasks.sfdx.SFDXOrgTask
options:
command: 'force:user:permset:assign -n Encryption'
create_tenant_secret:
group: 'Shield Platform Encryption'
description: Creates a new tenant secret for Shield Platform Encryption testing.
class_path: cumulusci.tasks.sfdx.SFDXOrgTask
options:
command: 'force:data:record:create -s TenantSecret -v "Description=Testing"'
execute_install_apex:
description: Runs anonymous apex for dev to configure settings, insert Affiliation mappings, insert Relationship lookups and insert default tdtm trigger handlers.
class_path: cumulusci.tasks.apex.anon.AnonymousApexTask
options:
apex: >
UTIL_CustomSettingsFacade.getSettings();
STG_InstallScript.insertMappings();
STG_InstallScript.insertRelationshipLookups();
TDTM_Global_API.setTdtmConfig(TDTM_Global_API.getDefaultTdtmConfig(), 'hed');
STG_InstallScript.enablePreferredPhoneSync();
execute_qa_apex:
description: Runs anonymous apex for qa to configure settings.
class_path: cumulusci.tasks.apex.anon.AnonymousApexTask
options:
path: scripts/setup.cls
apex: qaSetup();
has_einstein_licenses:
group: 'EDA: Einstein Templates'
description: Queries the target org for the existence of required permsets and returns true if found.
class_path: tasks.check_einstein.CheckPermSetLicenses
options:
permission_sets:
- EinsteinAnalyticsUser
- EinsteinAnalyticsAdmin
- EinsteinAnalyticsPlusAdmin
- EinsteinAnalyticsPlusUser
retrieve_config_dev:
description: Retrieves the current changes in the scratch org into unpackaged/config/dev.
class_path: cumulusci.tasks.salesforce.sourcetracking.RetrieveChanges
options:
path: unpackaged/config/dev
namespace_tokenize: $project_config.project__package__namespace
retrieve_config_trial:
description: Retrieves the current changes in the scratch org into unpackaged/config/trial.
class_path: cumulusci.tasks.salesforce.sourcetracking.RetrieveChanges
options:
path: unpackaged/config/trial
namespace_tokenize: $project_config.project__package__namespace
robot:
# description: Runs a Robot Framework test from a .robot file.
options:
suites: robot/EDA/tests
options:
outputdir: robot/EDA/results
robot_libdoc:
# description: Generates documentation for project keyword files.
options:
path: robot/EDA/resources/EDA.py,robot/EDA/resources/EDA.robot
output: robot/EDA/doc/Keywords.html
update_admin_profile:
# description: Retrieves, edits, and redeploys the System Administrator profile with full FLS perms for all objects/fields. Also sets record type visibilities.
group: "EDA: Custom Tasks"
class_path: tasks.salesforce.UpdateAdminProfile
flows:
setup_encryption:
description: Sets up Shield Platform Encryption in the target Org. It is recommended that this flow be run in developer scratch orgs only.
steps:
1:
task: deploy_encryption_permset
2:
task: assign_encryption_permset
3:
task: create_tenant_secret
edaectomy:
description: Remove all the EDA metadata in the target Org.
steps:
1:
task: delete_dev_config
2:
task: uninstall_packaged
config_apextest:
# description: Configure an org to run apex tests after package metadata is deployed.
steps:
3:
task: execute_install_apex
config_dev:
# description: Configure an org for use as a dev org after package metadata is deployed.
steps:
3:
task: execute_install_apex
4:
task: deploy_dev_config
config_dev_namespaced:
# description: Configure an org for use as a namespaced dev org after package metadata is deployed.
steps:
1:
task: deploy_post
options:
namespaced_org: True
2:
task: update_admin_profile
options:
namespaced_org: True
3:
task: execute_install_apex
4:
task: deploy_dev_config
config_managed:
# description: Configure an org for use as a dev org after package metadata is deployed.
steps:
3:
task: deploy_dev_config
options:
unmanaged: False
4:
task: deploy_einstein_templates
config_packaging:
# description: Configure packaging org for upload after package metadata is deployed
steps:
1:
# Configure update_admin_profile
options:
managed: True
namespaced_org: True
skip_record_types: True
config_qa:
# descripton: Configure an org for use as a QA org after package metadata is deployed.
steps:
3:
task: execute_install_apex
4:
task: deploy_dev_config
5:
task: execute_qa_apex
6:
task: deploy_qa_config
config_regression:
# description: Configure an org for QA regression after the package is installed.
steps:
2:
task: execute_qa_apex
options:
managed: True
namespaced: True
3:
task: deploy_qa_config
options:
unmanaged: False
deploy_unmanaged:
# description: Deploy the unmanaged metadata from the package
steps:
4:
# Disable uninstall_packaged_incremental
task: None
dev_org_namespaced:
# description: Set up a namespaced scratch org as a development environment for unmanaged metadata
steps:
3:
# Configure the config_dev flow for namespaced org
options:
update_admin_profile:
namespaced_org: True
upgraded_org:
description: Simulates an existing EDA customer org that has been push-upgraded from the latest production release of EDA to the current beta, including any dependencies. Deploys the unmanaged metadata from the production release.
steps:
1:
flow: latest_release:dependencies
2:
task: install_managed
3:
flow: latest_release:config_regression
4:
task: update_dependencies
options:
include_beta: True
5:
task: install_managed_beta
net_new_org:
description: Simulates an EDA installation for a new customer. Installs the latest beta and dependencies.
steps:
1:
flow: install_beta
2:
task: execute_qa_apex
options:
managed: True
namespaced: True
3:
task: deploy_qa_config
options:
unmanaged: False
services:
mockaroo:
description: Configure connection for Mockaroo tasks
attributes:
key:
description: The API key for Mockaroo
required: True
orgs:
scratch:
dev_namespaced:
config_file: orgs/dev.json
namespaced: True
prerelease:
config_file: orgs/prerelease.json
prerelease_namespaced:
config_file: orgs/prerelease.json
namespaced: True
trial:
config_file: orgs/trial.json
plans:
install:
slug: install
title: Install
tier: primary
steps:
1:
flow: dependencies
ui_options:
deploy_pre:
acc_record_types:
name: EDA - Account Record Types
contact_key_affl_fields:
name: EDA - Contact Key Affiliation Fields
2:
task: install_managed
3:
task: deploy_post
ui_options:
course_connection_record_types:
name: EDA - Course Connection Record Types
facility_display_name:
name: EDA - Facility Display Name Formula Field
case_behavior_record_types:
name: EDA - Case Behavior Record Types
options:
unmanaged: False
ra_einstein_template:
slug: ra_template
title: Install Education Cloud Recruiting Analytics Template
is_listed: False
tier: additional
steps:
1:
task: deploy_einstein_templates
checks:
- when: "not tasks.has_einstein_licenses()"
action: error
message: Einstein Analytics permission sets are not available.