diff --git a/.circleci/config.yml b/.circleci/config.yml index c12ae1e7f..5882b8e81 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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: | @@ -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 diff --git a/force-app/main/default/classes/myclass.cls b/force-app/main/default/classes/myclass.cls index 1e869cfcc..8de59db0a 100755 --- a/force-app/main/default/classes/myclass.cls +++ b/force-app/main/default/classes/myclass.cls @@ -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'; } } diff --git a/sfdx-circleci b/sfdx-circleci new file mode 160000 index 000000000..ce75bedc7 --- /dev/null +++ b/sfdx-circleci @@ -0,0 +1 @@ +Subproject commit ce75bedc7c7dd4ab6237ad28bc71893ec4b7d70a