forked from charise/Volunteers-for-Salesforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
29 lines (29 loc) · 1.42 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
28
29
machine:
python:
version: 2.7.12
environment:
CUMULUSCI_KEYCHAIN_CLASS: cumulusci.core.keychain.EnvironmentProjectKeychain
dependencies:
override:
- '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:
pre:
- 'if [[ $CIRCLE_BRANCH == "master" ]]; then cumulusci2 flow run ci_master --org packaging; fi'
- 'if [[ $CIRCLE_BRANCH == "master" ]]; then cumulusci2 flow run release_beta --org packaging; fi'
override:
- 'if [[ $CIRCLE_BRANCH == "master" ]]; then cumulusci2 flow run ci_beta --org beta --delete-org; else cumulusci2 flow run ci_feature --org feature --delete-org; fi'
post:
- 'mkdir -p $CIRCLE_TEST_REPORTS/junit/'
- 'cp test_results.xml $CIRCLE_TEST_REPORTS/junit/'
- 'if [[ $CIRCLE_BRANCH != "master" ]]; then cp test_results.json $CIRCLE_ARTIFACTS; fi'
- 'if [[ $CIRCLE_BRANCH != "master" ]]; then 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"; fi'
deployment:
master_to_feature:
branch: master
commands:
- 'cumulusci2 task run github_master_to_feature'