forked from jdseibert/Cumulus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulusci.yml
446 lines (410 loc) · 17.5 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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
project:
name: Cumulus
package:
name: Cumulus
name_managed: Nonprofit Success Pack
namespace: npsp
api_version: 43.0
install_class: STG_InstallScript
uninstall_class: STG_UninstallScript
git:
repo_url: https://github.com/SalesforceFoundation/Cumulus
prefix_beta: uat/
prefix_release: rel/
apexdoc:
homepage: ApexDocContent/homepage.htm
banner: ApexDocContent/projectheader.htm
branch: gh-pages
repo_dir: ApexDocumentation
dependencies:
# npo02 (includes npe01)
- github: https://github.com/SalesforceFoundation/Households
# npe03
- github: https://github.com/SalesforceFoundation/Recurring_Donations
# npe4
- github: https://github.com/SalesforceFoundation/Relationships
# npe5
- github: https://github.com/SalesforceFoundation/Affiliations
tasks:
download_ldv_tests:
description: Downloads the NPSP-LDV-Tests repository
class_path: cumulusci.tasks.util.DownloadZip
options:
dir: ldv_tests
subfolder: Cumulus-LDV-Tests-master
url: 'https://github.com/SalesforceFoundation/Cumulus-LDV-Tests/archive/master.zip'
deploy_ldv_tests:
description: Deploy the LDV-Tests repo to your org.
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: ldv_tests/src
deploy_dev_config:
description: Deploys the post-install configuration for an unmanaged DE org
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/dev
deploy_trial_config:
description: Deploys the post-install configuration for a trial/new org.
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/trial
namespace_inject: $project_config.project__package__namespace
deploy_qa_config:
description: Deploys additional fields used for QA purposes only
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/qa
namespace_inject: $project_config.project__package__namespace
deploy_reports:
description: Deploys reports & dashboards
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/reports
namespace_inject: $project_config.project__package__namespace
deploy_dev_config_delete:
description: Deploys the metadata deletions for the post-install DE org config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/delete
robot:
options:
suites: robot/Cumulus/tests
options:
outputdir: robot/Cumulus/results
robot_libdoc:
options:
path: robot/Cumulus/resources/NPSP.py,robot/Cumulus/resources/NPSP.robot
output: robot/Cumulus/doc/Keywords.html
update_admin_profile:
options:
package_xml: lib/admin_profile.xml
record_types:
- record_type: Account.HH_Account
- record_type: Account.Organization
default: true
person_account_default: true
- record_type: Opportunity.NPSP_Default
default: true
pmd:
description: Run Apex code analysis with PMD. This task assumes that PMD is available in PATH. On MacOS PMD is available to install in brew.
class_path: tasks.pmd.PMDTask
options:
path: 'src/classes'
output: text
runAllApex: False
htmlfilename: 'pmd.html'
test_data_dev_org:
description: 'Loads a test data set for most NPSP objects based on 100 Contacts that should fit into a scratch org or DE org'
class_path: cumulusci.tasks.bulkdata.LoadData
options:
database_url: 'sqlite:///testdata/dev_org/test_data.db'
mapping: 'testdata/mapping.yml'
test_data_1k:
description: 'Loads a test data set for most NPSP objects based on 1024 Contacts'
class_path: cumulusci.tasks.bulkdata.LoadData
options:
database_url: 'sqlite:///testdata/1k/test_data.db'
mapping: 'testdata/mapping.yml'
test_data_100k:
description: 'Loads a test data set for most NPSP objects based on 102400 Contacts. NOTE: The sqlite data set is not included in the repo for this task so you need to load it into the correct filesystem location'
class_path: cumulusci.tasks.bulkdata.LoadData
options:
database_url: 'sqlite:///testdata/100k/test_data.db'
mapping: 'testdata/mapping.yml'
test_data_delete:
description: 'WARNING: Deletes all data in the objects specified in the objects option.'
class_path: cumulusci.tasks.bulkdata.DeleteData
options:
objects:
- Opportunity
- npe03__Recurring_Donation__c
- Case
- Contact
- Account
- Allocation__c
- General_Accounting_Unit__c
- Campaign
test_data_relationships:
description: 'Runs execute anonymous to insert the default relationships'
class_path: cumulusci.tasks.apex.anon.AnonymousApexTask
options:
apex: >
List<npe4__Relationship_Lookup__c> defaultRelationships = new List<npe4__Relationship_Lookup__c>{
new npe4__Relationship_Lookup__c(Name = 'Father',npe4__Male__c = 'Son', npe4__Female__c = 'Daughter', npe4__Neutral__c = 'Child'),
new npe4__Relationship_Lookup__c(Name = 'Mother',npe4__Male__c = 'Son', npe4__Female__c = 'Daughter', npe4__Neutral__c = 'Child'),
new npe4__Relationship_Lookup__c(Name = 'Parent',npe4__Male__c = 'Son', npe4__Female__c = 'Daughter', npe4__Neutral__c = 'Child'),
new npe4__Relationship_Lookup__c(Name = 'Son',npe4__Male__c = 'Father', npe4__Female__c = 'Mother', npe4__Neutral__c = 'Parent'),
new npe4__Relationship_Lookup__c(Name = 'Daughter',npe4__Male__c = 'Father', npe4__Female__c = 'Mother', npe4__Neutral__c = 'Parent'),
new npe4__Relationship_Lookup__c(Name = 'Child',npe4__Male__c = 'Father', npe4__Female__c = 'Mother', npe4__Neutral__c = 'Parent'),
new npe4__Relationship_Lookup__c(Name = 'Aunt',npe4__Male__c = 'Nephew', npe4__Female__c = 'Niece', npe4__Neutral__c = 'Sibling\'s Child'),
new npe4__Relationship_Lookup__c(Name = 'Uncle',npe4__Male__c = 'Nephew', npe4__Female__c = 'Niece', npe4__Neutral__c = 'Sibling\'s Child'),
new npe4__Relationship_Lookup__c(Name = 'Husband',npe4__Male__c = 'Husband', npe4__Female__c = 'Wife', npe4__Neutral__c = 'Spouse'),
new npe4__Relationship_Lookup__c(Name = 'Wife',npe4__Male__c = 'Husband', npe4__Female__c = 'Wife', npe4__Neutral__c = 'Spouse'),
new npe4__Relationship_Lookup__c(Name = 'Partner',npe4__Male__c = 'Partner', npe4__Female__c = 'Partner', npe4__Neutral__c = 'Partner'),
new npe4__Relationship_Lookup__c(Name = 'Cousin',npe4__Male__c = 'Cousin', npe4__Female__c = 'Cousin', npe4__Neutral__c = 'Cousin'),
new npe4__Relationship_Lookup__c(Name = 'Grandmother',npe4__Male__c = 'Grandson', npe4__Female__c = 'Granddaughter', npe4__Neutral__c = 'Grandchild'),
new npe4__Relationship_Lookup__c(Name = 'Grandfather',npe4__Male__c = 'Grandson', npe4__Female__c = 'Granddaughter', npe4__Neutral__c = 'Grandchild'),
new npe4__Relationship_Lookup__c(Name = 'Grandparent',npe4__Male__c = 'Grandson', npe4__Female__c = 'Granddaughter', npe4__Neutral__c = 'Grandchild'),
new npe4__Relationship_Lookup__c(Name = 'Grandson',npe4__Male__c = 'Grandfather', npe4__Female__c = 'Grandmother', npe4__Neutral__c = 'Grandparent'),
new npe4__Relationship_Lookup__c(Name = 'Granddaughter',npe4__Male__c = 'Grandfather', npe4__Female__c = 'Grandmother', npe4__Neutral__c = 'Grandparent'),
new npe4__Relationship_Lookup__c(Name = 'Grandchild',npe4__Male__c = 'Grandfather', npe4__Female__c = 'Grandmother', npe4__Neutral__c = 'Grandparent'),
new npe4__Relationship_Lookup__c(Name = 'Employer',npe4__Male__c = 'Employee', npe4__Female__c = 'Employee', npe4__Neutral__c = 'Employee'),
new npe4__Relationship_Lookup__c(Name = 'Employee',npe4__Male__c = 'Employer', npe4__Female__c = 'Employer', npe4__Neutral__c = 'Employer')
};
insert defaultRelationships;
test_data_delete_managed:
description: 'WARNING: Deletes all data in the objects specified in the objects option.'
class_path: cumulusci.tasks.bulkdata.DeleteData
options:
objects:
- Opportunity
- npe03__Recurring_Donation__c
- Case
- Contact
- Account
- npsp__Allocation__c
- npsp__General_Accounting_Unit__c
- Campaign
npsp_default_settings:
description: Configure the default NPSP Settings including Membership RecordType
class_path: cumulusci.tasks.apex.anon.AnonymousApexTask
options:
path: scripts/configure_npsp_default_settings.cls
apex: initializeNPSPSettings();
enable_customizable_rollups:
description: Enable the NPSP Customizable Rollups feature
class_path: cumulusci.tasks.apex.anon.AnonymousApexTask
options:
apex: new STG_PanelCustomizableRollup_CTRL().enableCRLPs();
add_second_currency:
description: Add CAD as a 2nd currency for a multicurrency org
class_path: tasks.multicurrency.ConfigureCAD
uninstall_packaged_incremental:
description: Deletes any metadata from the package in the target org not in the local workspace
class_path: cumulusci.tasks.salesforce.UninstallPackagedIncremental
options:
ignore:
QuickAction:
- NewEvent
- NewCase
- SendEmail
# Unpackaged lightning record pages added by trial config
FlexiPage:
- NPSP_Address_Record_Page
- NPSP_Deliverable
- NPSP_Engagement_Plan_Record_Page
- NPSP_GAU_Allocation
- NPSP_General_Accounting_Unit
flows:
config_dev:
steps:
3:
task: deploy_dev_config_delete
4:
task: deploy_dev_config
5:
task: npsp_default_settings
config_qa:
steps:
2:
task: None
3:
task: deploy_dev_config_delete
4:
task: deploy_trial_config
5:
task: npsp_default_settings
6:
task: deploy_qa_config
7:
task: update_admin_profile
8:
task: test_data_relationships
9:
task: deploy_reports
deploy_rollup_testing:
description: 'Deploys custom fields and rollup definitions for testing Customizable Rollups using the Apex Anon testing script. >>> NOTE: Customizable Rollups needs to be successfully enabled before deploy_rollup_testing can be run <<<'
steps:
1:
task: deploy
options:
path: unpackaged/config/acctsc_rollups
2:
task: deploy
options:
path: unpackaged/config/payment_rollups
3:
task: update_admin_profile
release_beta:
steps:
5:
task: mrbelvedere_publish
options:
tag: ^^github_release.tag_name
config_managed:
steps:
2:
task: deploy_dev_config_delete
3:
task: deploy_trial_config
options:
unmanaged: False
4:
task: update_admin_profile
options:
managed: true
5:
task: test_data_relationships
6:
task: deploy_reports
options:
unmanaged: False
install_regression:
steps:
# Add QA metadata needed for regression
5:
task: deploy_qa_config
options:
unmanaged: False
6:
task: update_admin_profile
options:
managed: true
config_offsetfiscal:
description: 'Configure an offset fiscal year'
steps:
1:
task: deploy
options:
path: unpackaged/config/offsetfiscal
config_multicurrency:
description: 'Configure a second currency'
steps:
1:
task: add_second_currency
test_data_dev_org:
description: 'WARNING: This flow deletes all data first, then loads the complete test data set based on 100 Contacts into the target org.'
steps:
1:
task: test_data_delete
2:
task: test_data_dev_org
test_data_dev_org_managed:
description: 'WARNING: This flow deletes all data first, then loads the complete test data set based on 100 Contacts into the target org.'
steps:
1:
task: test_data_delete_managed
2:
task: test_data_dev_org
options:
mapping: testdata/mapping_managed.yml
test_data_1k:
description: 'WARNING: This flow deletes all data first, then loads the complete test data set based on 1,024 Contacts into the target org.'
steps:
1:
task: test_data_delete
2:
task: test_data_1k
ldv_tests:
description: 'Deploys and runs LDV tests'
steps:
1:
task: download_ldv_tests
2:
task: deploy_ldv_tests
3:
task: run_tests
options:
test_name_match: LDV_%
orgs:
scratch:
dev_namespaced:
config_file: orgs/dev.json
namespaced: True
days: 7
beta_middlesuffix:
config_file: orgs/beta_middlesuffix.json
beta_multicurrency:
config_file: orgs/beta_multicurrency.json
beta_personaccounts:
config_file: orgs/beta_personaccounts.json
beta_statecountry:
config_file: orgs/beta_statecountry.json
beta_wave:
config_file: orgs/beta_wave.json
prerelease:
config_file: orgs/prerelease.json
trial:
config_file: orgs/trial.json
enterprise:
config_file: orgs/enterprise.json
plans:
existing_org:
slug: install
title: Install NPSP
tier: primary
steps:
1:
flow: dependencies
ui_options:
deploy_pre:
account_record_types:
name: Account Record Types
opportunity_record_types:
name: Opportunity Record Types
2:
task: install_managed
3:
task: deploy_post
options:
unmanaged: False
ui_options:
first:
name: NPSP Config for Salesforce Mobile App
new_org:
slug: trial
title: Install NPSP Trial
# This will be tier: unlisted once that is an option.
tier: additional
is_listed: False
steps:
1:
flow: dependencies
ui_options:
deploy_pre:
account_record_types:
name: Account Record Types
opportunity_record_types:
name: Opportunity Record Types
2:
task: install_managed
3:
flow: config_managed
options:
deploy_reports:
unmanaged: False
ui_options:
deploy_post:
first:
name: NPSP Config for Salesforce Mobile App
deploy_dev_config_delete:
name: Delete Developer Edition Sample Profiles
description: This deletes sample page layouts and profiles intended for Sales, Marketing, and Support use cases.
is_required: False
deploy_trial_config:
name: NPSP Trial Experience
deploy_reports:
name: NPSP Reports & Dashboards
is_required: False
reports:
slug: reports
title: Install Reports & Dashboards
tier: additional
is_listed: True
steps:
1:
task: deploy_reports
options:
unmanaged: False
ui_options:
name: NPSP Reports & Dashboards