Bitrise
Bitrise is CI for mobile: iOS and Android builds on Linux and macOS. A Script Runner step executes your committed shell script and waits on the run.
Prerequisites
- The shell script committed as
bitrise.shto the app’s repository, withTESTSIGMA_API_KEY,TESTSIGMA_TESTPLAN_ID, andMAX_WAIT_TIME_FOR_SCRIPT_TO_EXITset.
Set up the project
Section titled “Set up the project”-
Create a workspace: open the workspace dropdown in the top-left corner, click + Create Workspace, enter a name, and click Create.
-
Start a project: go to Dashboard and click + New Project. In the Choose how you want to get started dialog, select Start with Bitrise CI.
-
Connect the Git provider: configure the app’s privacy settings and click Next. In the Provider field, select GitHub, GitLab, or Bitbucket, then click Connect account.
-
Authorize Bitrise: in the tab that opens, click Authorize. On the Install & Authorize Bitrise screen, click Install & Authorize.
-
Pick the repository: select the repository that contains
bitrise.shand click Next. Choose a branch from the Default Branch dropdown and click Next. Bitrise then connects and verifies the repository, which can take a few moments. -
Open the build: click View 1st Build.
Add the script step
Section titled “Add the script step”-
Edit the workflow: on the Build #1 screen, click Edit Workflow. You can define a custom workflow here and remove auto-generated steps you don’t need.
-
Add Script Runner: click the + icon to add a step and search for Script Runner.
-
Point it at the script: expand the When to run section. Enter
./bitrise.shin the Script location field and./in the Working directory (option) field. Leave the other fields at their defaults and click Save Changes. -
Run the build: return to the project and click Start Build. Watch progress and logs in the build run section; once all steps finish, the build is marked passed or failed based on the outcome.
Was this page helpful?
Thanks for the feedback.