forked from SalesforceFoundation/EDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
27 lines (27 loc) · 1.01 KB
/
circle.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
general:
branches:
only:
- /feature\/.*/
machine:
python:
version: 2.7.12
environment:
CUMULUSCI_KEY: FIXME
CUMULUSCI_KEYCHAIN_CLASS: cumulusci.core.keychain.EnvironmentProjectKeychain
dependencies:
override:
- 'pip install --upgrade pip'
- 'pip install --upgrade cumulusci'
- 'mkdir ~/.appcloud'
- 'echo $SFDX_CONFIG > ~/.appcloud/workspace-config.json'
- 'echo $SFDX_HUB_ORG > ~/.appcloud/hubOrg.json'
- 'heroku plugins:install salesforce-alm@preview'
- 'heroku force --help'
test:
override:
- 'cumulusci2 flow run ci_feature --org feature --delete-org'
post:
- 'mkdir -p $CIRCLE_TEST_REPORTS/junit/'
- 'cp test_results.xml $CIRCLE_TEST_REPORTS/junit/'
- 'cp test_results.json $CIRCLE_ARTIFACTS'
- 'cumulusci2 task run apextestsdb_upload -o environment_name "scratch - dev" -o execution_name $CIRCLE_BUILD_NUM -o execution_url $CIRCLE_BUILD_URL -o results_file_url "$CIRCLE_BUILD_URL/artifacts/$CIRCLE_NODE_INDEX/$CIRCLE_ARTIFACTS/test_results.json"'