forked from jdseibert/Cumulus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulusci.yml
299 lines (271 loc) · 12.4 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
project:
name: Cumulus
package:
name: Cumulus
name_managed: Nonprofit Success Pack
namespace: npsp
api_version: 39.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: config/dev
deploy_dev_config_managed:
description: Deploys the post install configuration for a managed DE org
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: config/managed
deploy_qa_config:
description: Deploys additional fields used for qa purposes only
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: config/qa
deploy_dev_config_delete:
description: Deploys the metadata deletions for the post install DE org config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: config/delete
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();
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_dev_config
5:
task: deploy_qa_config
6:
task: update_admin_profile
7:
task: test_data_relationships
config_acctsc_rollups:
description: 'Deploys custom fields and rollups for testing account soft credits.'
steps:
1:
task: enable_customizable_rollups
2:
task: deploy
options:
path: config/acctsc_rollups
3:
task: update_admin_profile
release_beta:
steps:
5:
task: mrbelvedere_publish
options:
tag: ^^github_release.tag_name
config_managed:
steps:
3:
task: deploy_dev_config_delete
4:
task: deploy_dev_config_managed
5:
task: test_data_relationships
config_offsetfiscal:
description: 'Configure an offset fiscal year'
steps:
1:
task: deploy
options:
path: config/offsetfiscal
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
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