forked from SFDO-Tooling/CumulusCI-Test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
37 lines (37 loc) · 1.62 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
30
31
32
33
34
35
36
37
# If you need to handle concurrency greater than 1, uncomment the following and deploy an instance of https://github.com/SalesforceFoundation/circleci-github-trigger to trigger your builds
#general:
# branches:
# ignore:
# - /feature\/.*/
machine:
python:
version: 2.7.12
environment:
CUMULUSCI_KEY: FIXME
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'
- 'git clone [email protected]:SalesforceFoundation/CumulusCI'
- 'cd CumulusCI; git checkout feature/2.0; pip install -r requirements_dev.txt'
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; fi'
deployment:
master_to_feature:
branch: master
commands:
- 'cumulusci2 task run github_master_to_feature'