Run unit tests and build iOS and Android binaries on commit to branch
As a project maintainer, I want gitlab to automatically run unit tests and build iOS and Android binaries on any commit to develop
and master
branches so that I can notice and fix problems as soon as they occur.
SCOPE
- Triggered when anyone commits to
develop
branch - Use Fastlane
- Run all unit tests and fail the build if any test fails
- Build iOS binary and fail the pipeline if iOS fails to build
- Build Android binary and fail the pipeline if Android fails to build
- Save Android binary as a build artifact
- Use a runner on the Macstadium build server
DONE
-
Build is triggered on any commit to develop
branch -
Unit tests get executed and pipeline fails when even one test fails -
iOS binary gets build successfully -
When iOS binary fails, pipeline fails -
Android binary gets build successfully and is saved as a pipeline build artifact -
When Android binary build fails, pipeline fails