Codemagic
Codemagic runs workflows from a codemagic.yaml at the repository root. One step runs the committed shell script, so every build triggers your Testsigma test plan.
Prerequisites
- A Codemagic account and a repository containing the executable trigger script,
magictrigger.sh.
Connect the repository
Section titled “Connect the repository”-
Sign up: go to codemagic.io and sign up with your version control system (GitHub in this example).
-
Authorize: click Authorize Codemagic CI/CD. On the How will you be using Codemagic? page, select the option you prefer.
-
Connect code: on the Welcome Onboard page, under Connect Code, choose your version control provider (for example, GitHub).
Configure the application
Section titled “Configure the application”-
Select the repository: under Select repository, choose the repository from the dropdown and click Select repository.
-
Set the project path: enter the relative path to your project in the Project path field, then click Retry so Codemagic can scan the repository. Alternatively, click Set Type Manually to specify the project type yourself.
-
Create the app: select the project type and click Create Application.
Add the YAML workflow
Section titled “Add the YAML workflow”-
Switch to YAML: on the workflow screen, click Switch to YAML configuration. In the Update Settings dialog, select the codemagic.yaml radio button and click Save changes.
-
Create the file: in your repository, add a file named
codemagic.yamlat the root directory:codemagic.yaml workflows:run-testsigma:name: Run Testsigma Shell Scriptscripts:- name: Trigger Testsigmascript: |chmod +x ./magictrigger.sh./magictrigger.sh -
Push it: commit and push the file. Optionally, configure Environment Variables, Webhooks, and other settings in Codemagic.
Run the workflow
Section titled “Run the workflow”In Codemagic, click Start new build. Codemagic detects the codemagic.yaml file and starts the workflow. After the build completes, you can view the execution logs and test results.
Was this page helpful?
Thanks for the feedback.