forked from jdseibert/Cumulus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcumulusci.yml
More file actions
238 lines (213 loc) · 8.38 KB
/
cumulusci.yml
File metadata and controls
238 lines (213 loc) · 8.38 KB
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
project:
name: Cumulus
package:
name: Cumulus
name_managed: Nonprofit Success Pack
namespace: npsp
api_version: 37.0
install_class: STG_InstallScript
uninstall_class: STG_UninstallScript
git:
repo_url: https://github.com/SalesforceFoundation/Cumulus
default_branch: dev
prefix_beta: uat/
prefix_release: rel/
apexdoc:
homepage: ApexDocContent/homepage.htm
banner: ApexDocContent/projectheader.htm
dependencies:
- namespace: npo02
version: 3.8
dependencies:
- namespace: npe01
version: 3.6
- namespace: npe03
version: 3.9
- namespace: npe4
version: 3.5
- namespace: npe5
version: 3.5
tasks:
download_browser_tests:
description: Downloads the browser tests from the NPSP-Browser-Tests Github repository.
class_path: cumulusci.tasks.util.DownloadZip
options:
url: 'https://github.com/SalesforceFoundation/NPSP-Browser-Tests/archive/master.zip'
dir: browser_tests
subfolder: NPSP-Browser-Tests-master
deploy_dev_config:
description: Deploys the post install configuration for an unmanaged DE org
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: dev_config/src
deploy_dev_config_delete:
description: Deploys the metadata deletions for the post install unmanaged DE org config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: dev_config/delete
update_admin_profile:
class_path: tasks.salesforce.UpdateAdminProfile
options:
package_xml: lib/admin_profile.xml
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
rowsertests_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
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
flows:
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
dev_org:
tasks:
8:
task: deploy_dev_config_delete
9:
task: deploy_dev_config
release_beta:
tasks:
5:
task: mrbelvedere_publish
options:
tag: ^^github_release.tag_name
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.'
tasks:
1:
task: test_data_delete
2:
task: test_data_dev_org
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.'
tasks:
1:
task: test_data_delete
2:
task: test_data_1k
orgs:
scratch:
beta_middlesuffix:
config_file: orgs/beta_middlesuffix.json
browsertest_classic:
config_file: orgs/browsertest_classic.json