forked from SFDO-Tooling/CumulusCI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulusci.yml
154 lines (137 loc) · 4.85 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
# yaml-language-server: $schema=cumulusci/schema/cumulusci.jsonschema.json
project:
name: CumulusCI
package:
name: CumulusCI
sources:
ccitest:
github: https://github.com/SFDO-Tooling/CumulusCI-Test
branch: main
tasks:
robot:
options:
suites: cumulusci/robotframework/tests
options:
outputdir: robot/CumulusCI/results
skiponfailure: noncritical # allows testing failure conditions
robot_testdoc:
options:
path: cumulusci/robotframework/tests
output: docs/robot/Test_Suite.html
robot_lint:
options:
path:
- cumulusci/robotframework
ignore:
- RequireTestDocumentation
robot_libdoc:
description: Generates html documentation for the Salesorce and CumulusCI libraries and resource files
class_path: cumulusci.tasks.robotframework.RobotLibDoc
options:
title: CumulusCI Robot Framework Keywords
output: docs/robot/Keywords.html
path:
- cumulusci.robotframework.CumulusCI
- cumulusci.robotframework.PageObjects
- cumulusci.robotframework.Salesforce
- cumulusci/robotframework/Salesforce.robot
- cumulusci/robotframework/pageobjects/BasePageObjects.py
flows:
qa_org:
steps:
2:
flow: None
robot_docs:
description: Generates documentation for robot framework libraries
steps:
1:
task: robot_libdoc
2:
task: robot_testdoc
test_performance_scratch:
description: Test performance of a scratch org
steps:
1:
task: robot
options:
suites: cumulusci/robotframework/perftests/short
test_performance_LDV:
description: Test performance in an LDV org
steps:
1:
task: robot
options:
suites: cumulusci/robotframework/perftests
test_run_tests:
description: Test the run_tests task in a CumulusCI-Test org
steps:
1:
flow: ccitest:qa_org
2:
task: run_tests
options:
required_per_class_code_coverage_percent: 50
3:
task: run_tests
ignore_failure: True
options:
required_per_class_code_coverage_percent: 90
required_org_code_coverage_percent: 100
test_upserts_rest_simple:
steps:
1:
task: load_dataset
options:
sql_path: datasets/upsert/upsert_before_data.sql
mapping: datasets/upsert/upsert_mapping_rest.yml
set_recently_viewed: False
2:
task: query
options:
object: Contact
query: "select Id,Email,Name from Contact where LastName='Bluth'"
result_file: /tmp/contacts_before.csv
3:
task: load_dataset
options:
sql_path: datasets/upsert/upsert_example_2.sql
mapping: datasets/upsert/upsert_mapping_rest.yml
set_recently_viewed: False
4:
task: query
options:
object: Contact
query: "select Id,Email,Name from Contact where LastName='Bluth'"
result_file: /tmp/contacts_after.csv
test_upserts_bulk_complex:
steps:
1:
task: load_dataset
options:
sql_path: datasets/upsert/upsert_before_data.sql
mapping: datasets/upsert/upsert_mapping_bulk_complex.yml
set_recently_viewed: False
2:
task: query
options:
object: Contact
query: "select Id,Email,Name from Contact where LastName='Bluth'"
result_file: /tmp/contacts_before.csv
3:
task: load_dataset
options:
sql_path: datasets/upsert/upsert_complex_example.sql
mapping: datasets/upsert/upsert_mapping_bulk_complex.yml
set_recently_viewed: False
4:
task: query
options:
object: Contact
query: "select Id,Email,Name from Contact where LastName='Bluth'"
result_file: /tmp/contacts_after.csv
orgs:
scratch:
prerelease:
config_file: orgs/prerelease.json
pytest:
config_file: orgs/dev.json