CI pipelines and mobile builds
Bitrise integration
TesterArmy tests the iOS Simulator build or Android APK from every Bitrise Workflow and gates the pipeline on the results.
What gates the pipeline
The Bitrise Workflow builds the simulator app, then a Script Step uploads it and runs testerarmy ci, which waits for every run and exits non-zero when any fails.
- git-clone
- xcode-build-for-simulator
- Script · Run TesterArmy mobile tests
How it works
Setup is bitrise.yml plus the Workflow Editor's Secrets tab. The build must produce an iOS Simulator .app or an Android .apk, because an .ipa or .aab will not work.
Add the three values
Add the API key on the Workflow Editor's Secrets tab so it stays masked, and keep the project and group IDs in app.envs in bitrise.yml.
Build a supported artifact
Build iOS with xcode-build-for-simulator and Android with android-build set to build_type apk, because TesterArmy installs the artifact on a cloud simulator or emulator.
Add one Script Step
One Script Step runs the TesterArmy CLI twice: upload-app sends the build, then ci starts the group, waits for every run and exits non-zero on failure.
Works with
A connected GitHub repository receives the check and pull request comment. GitHub Actions and Expo EAS test mobile builds the same way, and GitLab CI runs groups after web deploys.
Questions
Test the next Bitrise build
One Script Step after the build gives every Workflow a verdict for each run and an exit code Bitrise gates on.
