Custom build steps
You can customize the Codemagic workflow by running custom scripts before and after the default build steps.
In the UI, the spots for injecting custom scripts are marked by '+' signs between the sections. Click on '+' to expand the section and add your script in the appropriate section. You can run custom scripts in post-clone, pre-test, post-test, pre-build, post-build, pre-publish and post-publish phases. The scripts can be run in any language, simply define the language with a shebang line. For example,
/Users/builder/cloneand can also be accessed using the environment variable
FCI_BUILD_DIR. If your project is not in the repository root and you want to access it from a script, you will need to move to the needed directory inside the script.
codemagic.yaml for build configuration allows for even greater customization of builds, read more about it here.