pintomau / cci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to setup a cci project

You should read up on the following resources:

  1. https://trailhead.salesforce.com/content/learn/trails/build-applications-with-cumulusci
  2. https://cumulusci.readthedocs.io/en/stable/index.html

To reach up to the state of this project, you need:

  1. Install NodeJS

  2. Install Python

  3. Install pipx: python -m pip install --user pipx, python -m pipx ensurepath

  4. Install pipenv: pipx install pipenv

  5. Inspect and run ./setup.sh. This will initiate the new pipenv environment and install cumulusci, chromedriver and the Salesforce cli.

  6. Activate the pipenv environment shell using pipenv shell, this will create a new virtual shell with the enriched PATH providing access to all dependencies.

  7. Create a Salesforce Environment following this guide:

    1. Login from the Salesforce CLI: sf org login web --alias CCIDevHub
  8. Connect cumulus ci to your Github account following this guide

    1. Connect cumulus ci to Github: cci service connect github github.com
  9. Create a new cumulus ci project following this guide:

    1. cci project init
    2. cci service connect devhub --project; Username: CCIDevHub
  10. Deploy the dev org using the dev_org cci flow, following this guide:

    1. cci flow run dev_org --org dev
  11. Run the provided test: cci task run robot --org dev

Github actions

  1. sf force:org:display --verbose -u {yourUsername@domain.com}
  2. Copy Sfdx Auth Url and create a Github Actions Secret in your repository
  3. Inspect feature-test.yml where we're using workflows provided by https://github.com/cumulus-actions/standard-workflows and copy to your repo

cci_project

Add a brief description of this project here, in Markdown format. It will be shown on the main page of the project's GitHub repository.

Development

To work on this project in a scratch org:

  1. Set up CumulusCI
  2. Run cci flow run dev_org --org dev to deploy this project.
  3. Run cci org browser dev to open the org in your browser.

About


Languages

Language:RobotFramework 76.3%Language:Shell 23.7%