Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
machine: true
working_directory: ~/ci_app
environment:
SFDX_NPM_REGISTRY: http://ec2-18-234-205-250.compute-1.amazonaws.com:4873
# from https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_standalone.htm
# and https://developer.salesforce.com/media/salesforce-cli/manifest.json
- DX_CLI_URL: https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
DX_CLI_URL: https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
steps:
- checkout
- run:
Expand All @@ -28,6 +29,12 @@ jobs:
./sfdx/install
sfdx
mkdir tmp
- run:
name: Install Plugin
command: |
echo 'y' > input
sfdx plugins:install salesforce-alm < input
sfdx plugins --core
- run:
name: Create hub key
command: |
Expand All @@ -47,7 +54,7 @@ jobs:
echo 'Running tests'
sfdx force:auth:jwt:grant --clientid $HUB_CONSUMER_KEY --jwtkeyfile assets/server.key --username $HUB_SFDC_USER --setdefaultdevhubusername -a hub
sfdx force --help
sfdx force:org:create -s -f ~/ci_app/config/project-scratch-def.json -a circle_build_$CIRCLE_BUILD_NUM --wait 2
sfdx force:org:create -s -f ~/ci_app/config/project-scratch-def.json -a circle_build_$CIRCLE_BUILD_NUM --wait 4
sfdx force:source:push -u circle_build_$CIRCLE_BUILD_NUM
- run:
name: Run Apex Tests
Expand Down
11 changes: 11 additions & 0 deletions force-app/main/default/classes/myclass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ public with sharing class myclass {
}

public String getAppVersion() {

Integer i,j = 0;

for(i = 0; 1< 1001; i++){

j++;
j++;
j++;

}

return '1.0.0';
}
}
1 change: 1 addition & 0 deletions sfdx-circleci
Submodule sfdx-circleci added at ce75be