-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
40 lines (40 loc) · 1.77 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
38
39
40
general:
branches:
ignore:
- /feature\/.*/
machine:
python:
version: 2.7.12
environment:
CUMULUSCI_KEYCHAIN_CLASS: cumulusci.core.keychain.EnvironmentProjectKeychain
DX_URL: https://developer.salesforce.com/media/salesforce-cli/sfdx-v5.7.6-d42cf65-linux-amd64.tar.xz
dependencies:
override:
- heroku plugins:install salesforce-lightning-cli
- heroku lightning:lint ./src/aura/ >> ${CIRCLE_ARTIFACTS}/lightningLintReport.txt
- sh ./tests/checkLightningLintReport.sh
- pip install --upgrade pip
#- pip install --upgrade cumulusci
- git clone [email protected]:Szandor72/CumulusCI
- cd CumulusCI; pip install -e .
- wget -qO- $DX_URL | tar xJf -
- sudo ./sfdx/install
- sudo chmod 777 /home/ubuntu/.cache/sfdx -R
- sudo sfdx plugins:install salesforcedx@pre-release
- sudo sfdx update
- sudo chmod 777 /home/ubuntu/.sfdx/ -R
- mkdir tmp
- echo $SSL_SERVER_KEY_HEX | xxd -r -ps >> tmp/server.key
- openssl rsa -in tmp/server.key -check -noout
- sfdx force:auth:jwt:grant --clientid $DX_CONSUMER_KEY --jwtkeyfile tmp/server.key --username $DX_USER --setdefaultdevhubusername
test:
pre:
- if [[ $CIRCLE_BRANCH == "master" ]]; then cci flow run ci_master --org packaging; fi
- if [[ $CIRCLE_BRANCH == "master" ]]; then cci flow run release_beta --org packaging; fi
override:
- if [[ $CIRCLE_BRANCH == "master" ]]; then cci flow run ci_beta --org beta --delete-org; else cci 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 cci task run apextestsdb_upload; fi